Of course, the above doesn't really work the way I'd like it to. Ideally, given three possible states:
active = (sb_playing | sbs_scanning | sb_firmware_updating) idle_grace = (active within the last 45 minutes) idle = (!active within the last 45 minutes) ..during idle_grace, I'd like to poll the network bandwidth usage once per minute and keep a running sum of the total. If a usage threshold is exceeded, the state would be reset to active and the idle_grace counter reset to 0. I suppose that within SrvrPowerCtrl I could use something like Unix::Statgrab ( http://search.cpan.org/dist/Unix-Statgrab/lib/Unix/Statgrab.pm ). Unfortunately, I don't know how to package a module with my plugin that isn't a stock part of SBS's CPAN. -- 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
