X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapcups.c;h=be7673c5df9e1854ed1c32e0a2b55f89561dac3c;hb=dd8429c16bc57f949abb2537e003b76ad88b6f90;hp=dd535b15f966c0e17ebc29281f80723f068d80c1;hpb=fb558eeea9d5a96a268bd7065accd8d7a9991645;p=collectd.git diff --git a/src/apcups.c b/src/apcups.c index dd535b15..be7673c5 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -21,7 +21,7 @@ * * Authors: * Anthony Gialluca - * Florian octo Forster + * Florian octo Forster **/ #include "collectd.h" @@ -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;