From: <cha...@us...> - 2008-10-13 15:28:47
|
Revision: 550 http://sipp.svn.sourceforge.net/sipp/?rev=550&view=rev Author: charlespwright Date: 2008-10-13 15:07:39 +0000 (Mon, 13 Oct 2008) Log Message: ----------- Fix: Do not falsely report CPU congestion. From Martin H. VanLeeuwen Modified Paths: -------------- sipp/trunk/sipp.cpp Modified: sipp/trunk/sipp.cpp =================================================================== --- sipp/trunk/sipp.cpp 2008-10-13 15:01:45 UTC (rev 549) +++ sipp/trunk/sipp.cpp 2008-10-13 15:07:39 UTC (rev 550) @@ -3145,7 +3145,7 @@ } /* We need to process any messages that we have left over. */ - while (pending_messages && (loops-- > 0)) { + while (pending_messages && (loops > 0)) { getmilliseconds(); if (sockets[read_index]->ss_msglen) { struct sockaddr_storage src; @@ -3156,6 +3156,7 @@ } else { assert(0); } + loops--; } read_index = (read_index + 1) % pollnfds; } @@ -3251,7 +3252,7 @@ } /* We need to process any new messages that we read. */ - while (pending_messages && (loops-- > 0)) { + while (pending_messages && (loops > 0)) { getmilliseconds(); if (sockets[read_index]->ss_msglen) { @@ -3265,6 +3266,7 @@ } else { assert(0); } + loops--; } read_index = (read_index + 1) % pollnfds; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |