X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapcups.c;h=ee15b14f66cf8d1899f767aac09915ee9e895878;hb=33e60ef35f745c56b1a5936272b1dd8b0cf63d12;hp=dd535b15f966c0e17ebc29281f80723f068d80c1;hpb=fb558eeea9d5a96a268bd7065accd8d7a9991645;p=collectd.git diff --git a/src/apcups.c b/src/apcups.c index dd535b15..ee15b14f 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -465,7 +465,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;