gharris999;603530 Wrote: 
> I can't take credit for that.  I used Google to unearth that one-liner.
> 
> If you don't mind, I'll adapt your code to add bandwidth monitoring to
> SrvrPowerCtrl.  Unfortunately, there doesn't seem to be an equivalent
> to /proc/net/dev on OSX.  So, with both OSX and Windows I guess I'll be
> looking at system calls to netstat to get the the tx & rx byte counts.
I you think my suggestion is worth your time, feel free to implement it
in a sane way for everyone in the plugin. And thanks again for spotting
the bug on bytes/pkts ;)

There are 2 independent issues indeed. I figured bwm-ng was nice,
despite its improbable name, due to the fact it was ported to so many
platforms. On the mac the best I can do for now is calling "netstat -s
-f inet". Not too bad, but you can start cooking another set of
map/grep…
Maybe you want to stick to calling this util (or some other, or derive
from this base, or …) ?


-- 
epoch1970

Daily dose delivered by: 2 SB Classic (fw 130), 1 SB Boom (fw 50) •
SqueezeCenter 7.3.4 (Debian 5.0) with plugins: ContextMenu,
SaverSwitcher by Peter Watkins • Server Power Control by Gordon Harris
•  WeatherTime by Martin Rehfeld • IRBlaster by Gwendesign (Felix) •
FindArt, CDplayer by bpa • BBC iPlayer, SwitchPlayer by Triode •
PowerSave by Jason Holtzapple • TrackStat by Erland Isaksson.
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=49028

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to