X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapcups.c;h=137c0f2f17239e4b1bc429704cb5623266456fbd;hb=83af56840f30864e4ece322a47707d3a13d15422;hp=4fbbde63aad113dcbefdbc2db47e545ca3b5c241;hpb=dce49231bf8af989aceb34e0e80546503d687b6d;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;