File iputils-HZ.patch of Package iputils

--- ping_common.c
+++ ping_common.c
@@ -548,7 +548,7 @@
 
 			/* If we are here, recvmsg() is unable to wait for
 			 * required timeout. */ 
-			if (1000*next <= 1000000/(int)HZ) {
+			if (1000*next <= 1000000/(int)sysconf(_SC_CLK_TCK)) {
 				/* Very short timeout... So, if we wait for
 				 * something, we sleep for MININTERVAL.
 				 * Otherwise, spin! */
openSUSE Build Service is sponsored by