summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d99b79)
raw | patch | inline | side by side (parent: 4d99b79)
author | Florian Forster <octo@collectd.org> | |
Thu, 13 Dec 2012 08:55:04 +0000 (09:55 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 13 Dec 2012 08:55:04 +0000 (09:55 +0100) |
src/apcups.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index 4fbbde63aad113dcbefdbc2db47e545ca3b5c241..137c0f2f17239e4b1bc429704cb5623266456fbd 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
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 ed27b7854fb568a3a347fc2f9330dd23e6cc766b..a9b8b783adf9e0e51a48790bbd492892c4e412cb 100644 (file)
--- a/src/types.db
+++ b/src/types.db
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