Displaying 2 results from an estimated 2 matches for "wojci".
Did you mean:
wjci
2003 Aug 01
2
Bandwidth Monitor
Anybody knows about one bandwidth meter to use in Bering.
This is a script i built, it''s works wel, but it''s not very nice!!! =P
#!/bin/bash
# Bandwidth Monitor
device=eth0
bytes=`grep $device /proc/net/dev | cut -f 2 -d : | cut -d '' '' -f 2`
kbytes=`expr $bytes / 1024`
actual=$kbytes
i=1
x=0
total=0
while [ $i -le 2 ]
do
x=`expr $x + 1`
2009 Dec 14
5
Too many methods in the model? Extra lightweight logic layer?
Hi,
Given the convention of fat models to handle business logic, is there
a point where you might be justified in using a separate plain ruby
object(s) to orchestrate certain business logic interactions,
essentially a middle layer between your controllers and models for
high level functions?
If you look at the InventoryTransaction model below you will see the
sort of methods I mean. In this case