Code

configure: Fixed linker options when checking for amqp_tcp_socket_new.
[collectd.git] / src / apcups.c
index dd535b15f966c0e17ebc29281f80723f068d80c1..ee15b14f66cf8d1899f767aac09915ee9e895878 100644 (file)
@@ -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;