X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapcups.c;h=137c0f2f17239e4b1bc429704cb5623266456fbd;hb=7bbba254348a7fa98c4337455a3e0eae88ce0e86;hp=4fbbde63aad113dcbefdbc2db47e545ca3b5c241;hpb=1126617bebe569dffe6b7a5d3f0c400134b41d65;p=collectd.git 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;