]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fixed 100% CPU bug when paused
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Wed, 21 Aug 2013 15:23:31 +0000 (17:23 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Wed, 21 Aug 2013 15:24:04 +0000 (17:24 +0200)
NEWS
select.c

diff --git a/NEWS b/NEWS
index ca1f4ee7096066f7352b96da3cdcc7bb9e6e9025..fba16928e64a35d19a15d70a9c60027cbd852d51 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,9 +8,10 @@ V0.86 Fixed default hostname logic.
          -- Vladimir Yakovetsky, REW.
       Fixed failure on IPv4 only systems when IPv6 was available at
          compile time. -- REW.
+      Fixed (longstanding) bug that mtr used 100% cpu when paused. 
+      Cosmetic changes from Richard Hartman. 
 
-
-V0.85 fixed asn support. (better compile time detection of required features)
+V0.85 Fixed asn support. (better compile time detection of required features)
       support for multiple hostnames. (fixed in 0.86)
 
 V0.84 Fix some glib things by Thomas. 
index e46d69720c3c1238e1b93cc8516063437dc0b3b8..29088fd129fc94f6630663680fa3f2ad22c0ea96 100644 (file)
--- a/select.c
+++ b/select.c
@@ -111,7 +111,7 @@ void select_loop(void) {
         * this prevents mtr from hogging 100% CPU time on one core.
         */
        selecttime.tv_sec = 0;
-       selecttime.tv_usec = 100000; 
+       selecttime.tv_usec = paused?100000:0; 
       
        rv = select(maxfd, (void *)&readfd, &writefd, NULL, &selecttime);