search for: last_heard

Displaying 1 result from an estimated 1 matches for "last_heard".

2006 Jan 27
0
Suspend-to-disk & NUT (solved!)
...dead */ > > time(&now); > > /* ignore DATAOK/DATASTALE unless the dump is done */ > if (ups->dumpdone) > if (!ups->data_ok) > return 1; /* dead */ > > elapsed = difftime(now, ups->last_heard); > if (elapsed > maxage) > return 1; /* dead */ Oops, there it is! Unless the suspend-to-disk and subsequent wake up take less than 'maxage' (default 15) seconds, the UPS will be declared dead, we won't even try to see if it is still alive. This...