search for: iout

Displaying 2 results from an estimated 2 matches for "iout".

Did you mean: bout
2010 Sep 19
0
A logging/graphing UPS client using rrdtool and UPS::Nut
...t;; } } } else { upswatch(); } } } else { pod2usage(-message => $desc, -exitstatus => -1, -verbose => 0); } exit (0); sub upswatch { my ($ups, $date, $vin, $vout, $iin, $iout, $bcharge, $bvolts, $load, $graphctr, $uid, $gid); set_defaults(); open (LOG, ">>$logfile") unless ($opts{foreground}); select((select(LOG), $| = 1)[0]); (undef,undef,$uid,$gid) = getpwnam($runuser); create_files($uid,$gid); POSIX::setgid...
2008 Jun 13
2
Best Ferrups reporting uptime in minutes, not seconds
...77,8 @@ /* AC line frequency */ acfreq = ((double)bcd2i(&fstring[54], 4) / 100.0); - /* Runtime remaining */ - btimeleft = bcd2i(&fstring[58], 4); + /* Runtime remaining (UPS reports minutes) */ + btimeleft = bcd2i(&fstring[58], 4) * 60; if (fc.model != FDxxxx) { /* Iout. int times 10 */ -- Chris Adams <cmadams at hiwaay.net> Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble.