Changeset 16695
- Timestamp:
- 06/04/13 19:38:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r16694 r16695 647 647 void UpdateDimTempRefClk(const tuple<Time, array<uint32_t,40>, array<int16_t,160>> &dat) 648 648 { 649 const auto delay = boost::posix_time::seconds(5); 650 649 651 const Time &tm = get<0>(dat); 650 652 … … 669 671 Time newt; 670 672 671 if (newt<oldt+ boost::posix_time::seconds(1))673 if (newt<oldt+delay) 672 674 return; 673 675 … … 680 682 { 681 683 auto it=listclk.begin(); 682 if (it==listclk.end() || it->first+ boost::posix_time::seconds(1)>tm)684 if (it==listclk.end() || it->first+delay>tm) 683 685 break; 684 686 listclk.pop_front(); … … 712 714 fDimRefClock.Update(tm); 713 715 716 listclk.clear(); 717 714 718 // --------------- Temperatures --------------- 715 719 … … 718 722 { 719 723 auto it=listtmp.begin(); 720 if (it==listtmp.end() || it->first+ boost::posix_time::seconds(5)>tm)724 if (it==listtmp.end() || it->first+delay>tm) 721 725 break; 722 726 listtmp.pop_front(); … … 749 753 fDimTemperature.setData(avgtmp); 750 754 fDimTemperature.Update(tm); 755 756 listtmp.clear(); 751 757 } 752 758
Note:
See TracChangeset
for help on using the changeset viewer.