Rev 4743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4743 | Rev 4745 | ||
---|---|---|---|
Line 257... | Line 257... | ||
257 | fprintf( stderr, "Get time of day error %d\n", ERROR_CODE ); |
257 | fprintf( stderr, "Get time of day error %d\n", ERROR_CODE ); |
258 | return ERROR_CODE; |
258 | return ERROR_CODE; |
259 | } |
259 | } |
260 | switch( result ){ |
260 | switch( result ){ |
261 | case ICMP_ECHO: |
261 | case ICMP_ECHO: |
262 | printf( "Ping round trip time %d microseconds\n", tv_sub( & time_after, & time_before )); |
262 | printf( "Ping round trip time %d miliseconds\n", tv_sub( & time_after, & time_before ) / 1000 ); |
263 | break; |
263 | break; |
264 | case ETIMEOUT: |
264 | case ETIMEOUT: |
265 | printf( "Timeouted.\n" ); |
265 | printf( "Timeouted.\n" ); |
266 | break; |
266 | break; |
267 | default: |
267 | default: |