X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapcups.c;h=137c0f2f17239e4b1bc429704cb5623266456fbd;hb=d6021a800b12c89b5a78877af2c5b9abc1a8e609;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;