Skip to content

Commit

Permalink
added short wait to poll of monitor receive to avoid CPU railing
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 16, 2019
1 parent 34be358 commit 5f80ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UserTools/MonitorReceive/MonitorReceive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool MonitorReceive::Execute(){
m_data->CStore.Set("State",State);

if(sources>0){
zmq::poll(&items[0], 1, 0);
zmq::poll(&items[0], 1, 100);

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

0 comments on commit 5f80ea4

Please sign in to comment.