epoch1970;603500 Wrote: > And I quite like this one: "$throughput += $_ for @bytes;" I'll try to > remember that. 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. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=49028 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
