[Nut-upsdev] Patch - NUT-monitor: parse battery.runtime as a float instead of as int

Sven Putteneers sven.putteneers at gmail.com
Tue Jul 16 13:33:13 UTC 2013

Hi all,

I've attached a patch that changes the parsing of battery.runtime in
NUT-monitor from int to float.
This already happens for ups.temperature, charge and load.

Without this patch, I get a flood of "Invalid literal for int with base
10: '28500.00" errors.

Kind regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: battery.runtime_is_float.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20130716/3d9ccdde/attachment.bin>

More information about the Nut-upsdev mailing list