summaryrefslogtreecommitdiffstats
path: root/src/usr/pingmgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/pingmgmt.c')
-rw-r--r--src/usr/pingmgmt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/usr/pingmgmt.c b/src/usr/pingmgmt.c
index e45593828..0db10c219 100644
--- a/src/usr/pingmgmt.c
+++ b/src/usr/pingmgmt.c
@@ -56,16 +56,15 @@ static void ping_callback ( struct sockaddr *peer, unsigned int sequence,
* Ping a host
*
* @v hostname Hostname
- * @v timeout_ms Timeout between pings, in ms
+ * @v timeout Timeout between pings, in ticks
* @v len Payload length
* @ret rc Return status code
*/
-int ping ( const char *hostname, unsigned long timeout_ms, size_t len ) {
+int ping ( const char *hostname, unsigned long timeout, size_t len ) {
int rc;
/* Create pinger */
- if ( ( rc = create_pinger ( &monojob, hostname,
- ( ( timeout_ms * TICKS_PER_SEC ) / 1000 ),
+ if ( ( rc = create_pinger ( &monojob, hostname, timeout,
len, ping_callback ) ) != 0 ) {
printf ( "Could not start ping: %s\n", strerror ( rc ) );
return rc;