Skip to content

Commit

Permalink
timespec: fix timespec to ms helper
Browse files Browse the repository at this point in the history
looks like a bad typo

Signed-off-by: Fatih Acar <fatih.acar@gandi.net>
  • Loading branch information
fatih-acar committed May 2, 2018
1 parent dd9248b commit ffc9d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntirpc/misc/timespec.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

/* Convert to coarse milliseconds with round up */
#define timespec_ms(tsp) \
((tsp)->tv_sec * 1000 + ((tsp)->tv_nsec + 999999) % 1000000)
((tsp)->tv_sec * 1000 + ((tsp)->tv_nsec + 999999) / 1000000)

/* Operations on timespecs */
#define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
Expand Down

0 comments on commit ffc9d4f

Please sign in to comment.