Changeset 17930


Ignore:
Timestamp:
07/23/14 12:09:36 (10 years ago)
Author:
tbretz
Message:
More precise time interval for convenience
File:
1 edited

Legend:

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

    r17929 r17930  
    7676        boost::split(vec, buffer, boost::is_any_of(","));
    7777
    78         // Send next request in fTimeout milliseconds
    79         fTrigger.expires_from_now(boost::posix_time::milliseconds(fTimeout));
     78        // Send next request in fTimeout milliseconds calculated from
     79        // the last request onwards.
     80        fTrigger.expires_at(fTrigger.expires_at()+boost::posix_time::milliseconds(fTimeout));
    8081        fTrigger.async_wait(boost::bind(&ConnectionSQM::HandleRequestTrigger,
    8182                                          this, dummy::error));
     
    190191    {
    191192        StartReadReport();
     193        fTrigger.expires_at(Time());
    192194    }
    193195
Note: See TracChangeset for help on using the changeset viewer.