From d5b09f2bb673ac9396da52b85bcbd16c98b3d633 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 13 Dec 2012 09:55:04 +0100 Subject: [PATCH] src/types.db: Remove the maximum value from "timeleft". --- src/apcups.c | 2 +- src/types.db | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apcups.c b/src/apcups.c index 4fbbde63..137c0f2f 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -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; diff --git a/src/types.db b/src/types.db index ed27b785..a9b8b783 100644 --- a/src/types.db +++ b/src/types.db @@ -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 -- 2.11.0