Sven Putteneers
2013-Jul-16 13:33 UTC
[Nut-upsdev] Patch - NUT-monitor: parse battery.runtime as a float instead of as int
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, Sven -------------- 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>
Apparently Analagous Threads
- Patch - NUT-monitor: parse battery.runtime as a float instead of as int
- [Nut-upsdev] Shutdown by battery.remaining or battery.runtime?
- [nut-hal-drivers] Battery level is not correct for Ippon Back Comfo Pro UPS with Megatec protocol.
- Shutdown by battery.remaining or battery.runtime?
- [LLVMdev] Truncate float to int?