diff --git a/src/apcups.c b/src/apcups.c
index dd535b15f966c0e17ebc29281f80723f068d80c1..ee15b14f66cf8d1899f767aac09915ee9e895878 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
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;