QEMU virtual NIC doesn't need 2s to stabilize. Reduced initial
wait from 2s to 500ms and inter-ping delay from 1s to 250ms.
}
/* Wait for the E1000 link to stabilize in QEMU */
- process_sleep(2 * TIMER_HZ); /* ~2 seconds */
+ process_sleep(TIMER_HZ / 2); /* ~500ms — plenty for QEMU virtual NIC */
ip_addr_t target;
ip_addr_set_zero_ip4(&target);
}
if (i + 1 < PING_COUNT)
- process_sleep(TIMER_HZ); /* ~1 second between pings */
+ process_sleep(TIMER_HZ / 4); /* ~250ms between pings */
}
/* Cleanup in tcpip thread */