Changeset 14988 for trunk/FACT++/src


Ignore:
Timestamp:
03/05/13 13:29:26 (12 years ago)
Author:
tbretz
Message:
If there was no report yet at all, state disconnected is returned.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/pwrctrl.cc

    r14978 r14988  
    266266
    267267        // Timeout
    268         if (fLastReport.IsValid() && fLastReport+boost::posix_time::seconds(fInterval*2)<Time())
     268        if (!fLastReport.IsValid() || fLastReport+boost::posix_time::seconds(fInterval*2)<Time())
    269269            return Power::State::kDisconnected;
    270270
    271         // No dat areceived yet
     271        // No data received yet
    272272        if (!fIsValid)
    273273            return Power::State::kConnected;
Note: See TracChangeset for help on using the changeset viewer.