Page MenuHomeFreeBSD

ping: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC)
ClosedPublic

Authored by jansucan on Aug 13 2019, 8:49 AM.
Tags
None
Referenced Files
F163423609: D21245.id60717.diff
Thu, Jul 23, 2:21 AM
F163384709: D21245.id.diff
Wed, Jul 22, 5:44 PM
Unknown Object (File)
Tue, Jul 21, 6:38 AM
Unknown Object (File)
Mon, Jul 20, 10:11 AM
Unknown Object (File)
Mon, Jul 13, 6:03 AM
Unknown Object (File)
Mon, Jul 6, 10:14 PM
Unknown Object (File)
Fri, Jul 3, 5:26 AM
Unknown Object (File)
Thu, Jul 2, 1:31 PM
Subscribers

Details

Summary

Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC)

Submitted by: Ján Sučan <sucanjan@gmail.com>
Sponsored by: Google, inc. (Google Summer of Code 2019)

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25845
Build 24416: arc lint + arc unit

Event Timeline

asomers requested changes to this revision.Aug 13 2019, 3:07 PM
asomers added inline comments.
sbin/ping/ping.c
894–895

These 10 lines can be replaced by timespecadd

This revision now requires changes to proceed.Aug 13 2019, 3:07 PM

Use timespecadd(), and timespecsub().

sbin/ping/ping.c
894–895

Fixed.

This revision is now accepted and ready to land.Aug 13 2019, 7:24 PM
This revision was automatically updated to reflect the committed changes.