src/types.db: Remove the maximum value from "timeleft".
authorFlorian Forster <octo@collectd.org>
Thu, 13 Dec 2012 08:55:04 +0000 (09:55 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 13 Dec 2012 08:55:04 +0000 (09:55 +0100)
src/apcups.c
src/types.db

index 4fbbde6..137c0f2 100644 (file)
@@ -450,7 +450,7 @@ static int apcups_read (void)
        apcups_detail.battv    =   -1.0;
        apcups_detail.loadpct  =   -1.0;
        apcups_detail.bcharge  =   -1.0;
-       apcups_detail.timeleft =   -1.0;
+       apcups_detail.timeleft =    NAN;
        apcups_detail.itemp    = -300.0;
        apcups_detail.linefreq =   -1.0;
 
index ed27b78..a9b8b78 100644 (file)
@@ -153,7 +153,7 @@ tcp_connections             value:GAUGE:0:4294967295
 temperature            value:GAUGE:-273.15:U
 threads                        value:GAUGE:0:U
 time_dispersion                value:GAUGE:-1000000:1000000
-timeleft               value:GAUGE:0:3600
+timeleft               value:GAUGE:0:U
 time_offset            value:GAUGE:-1000000:1000000
 total_bytes            value:DERIVE:0:U
 total_connections      value:DERIVE:0:U