From a8ca1796e50466e72bb99363049fbef3fd428b4e Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 18 May 2016 13:44:17 +0200 Subject: [PATCH] + Fix #403 --- hardware/ups/apc/snmp/mode/batterystatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/ups/apc/snmp/mode/batterystatus.pm b/hardware/ups/apc/snmp/mode/batterystatus.pm index ac8508919..8b7db9daf 100644 --- a/hardware/ups/apc/snmp/mode/batterystatus.pm +++ b/hardware/ups/apc/snmp/mode/batterystatus.pm @@ -96,9 +96,9 @@ sub set_counters { }, { label => 'time', set => { key_values => [ { name => 'upsAdvBatteryRunTimeRemaining' } ], - output_template => 'Remaining time : %s minutes', + output_template => 'Remaining time : %.2f minutes', perfdatas => [ - { label => 'load_time', value => 'upsAdvBatteryRunTimeRemaining_absolute', template => '%s', + { label => 'load_time', value => 'upsAdvBatteryRunTimeRemaining_absolute', template => '%.2f', min => 0, unit => 'm' }, ], }