12 lines
362 B
Diff
12 lines
362 B
Diff
--- 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! */
|