kantlivelong / OctoPrint-UPS

Integrates a UPS monitored by NUT into OctoPrint
GNU Affero General Public License v3.0
17 stars 7 forks source link

Rounding of the Runtime value #8

Open mikulik86 opened 2 years ago

mikulik86 commented 2 years ago

Hi, thanks a lot for this Plugin.

Please correct the rounding of Runtime calculation: image My UPS: EATON 5P 850

edm00se commented 2 years ago

I've got a CyberPower and am seeing similar behavior. Either rounding or a python equivalent of a floor on the value would be excellent.

kantlivelong commented 2 years ago

I plan on making the information displayed configurable so what I'll likely end up doing is adding a simple rounding option there.