Skip to content

Commit 5f80ea4

Browse files
author
root
committed
added short wait to poll of monitor receive to avoid CPU railing
1 parent 34be358 commit 5f80ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UserTools/MonitorReceive/MonitorReceive.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bool MonitorReceive::Execute(){
5151
m_data->CStore.Set("State",State);
5252

5353
if(sources>0){
54-
zmq::poll(&items[0], 1, 0);
54+
zmq::poll(&items[0], 1, 100);
5555

5656
if ((items [0].revents & ZMQ_POLLIN)) {
5757
// std::cout<<"in poll in"<<std::endl;

0 commit comments

Comments
 (0)