Displaying 1 result from an estimated 1 matches for "btimeleft".
Did you mean:
timeleft
2008 Jun 13
2
Best Ferrups reporting uptime in minutes, not seconds
.../drivers/bestfcom.c
--- nut-2.2.1-dist/drivers/bestfcom.c 2008-06-13 14:04:07.000000000 -0500
+++ nut-2.2.1/drivers/bestfcom.c 2008-06-13 14:05:00.000000000 -0500
@@ -277,8 +277,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...