Changeset 15081
- Timestamp:
- 03/15/13 13:43:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r15059 r15081 394 394 395 395 push_back(EventElement(t, s)); 396 } 397 398 void clean() 399 { 400 for (auto it=begin(); it!=end();) 401 for (it=begin(); it!=end(); it++) 402 if (!it->time) 403 { 404 erase(it); 405 break; 406 } 396 407 } 397 408 … … 726 737 if (d.GetQoS()==MessageImp::kAlarm) 727 738 { 728 if (d.GetSize() ==1)739 if (d.GetSize()<2) 729 740 for (auto it=fControlAlarmHist.begin(); it!=fControlAlarmHist.end(); it++) 730 741 it->time = Time(Time::none); … … 733 744 } 734 745 735 if (d.GetQoS()==MessageImp::kComment )746 if (d.GetQoS()==MessageImp::kComment && d.GetSize()>1) 736 747 HandleControlMessageImp(d); 737 748 … … 759 770 // [1] DimControl::kLoading 760 771 // [2] DimControl::kCompiling 761 // [3] DimControl::kR inning772 // [3] DimControl::kRunning 762 773 if (d.GetQoS()==1) 763 774 { … … 2393 2404 2394 2405 for (auto it=fControlAlarmHist.begin(); it!=fControlAlarmHist.end(); it++) 2395 {2396 2406 newerr |= SetError(it->time.IsValid(), it->msg); 2397 if (!it->time) 2398 fControlAlarmHist.erase(it); 2399 } 2407 fControlAlarmHist.clean();; 2400 2408 2401 2409 fLastRunFinishedWithZeroEvents = false;
Note:
See TracChangeset
for help on using the changeset viewer.