Skip to content

Commit

Permalink
Merge pull request #133 from fatih-acar/timespec_fix
Browse files Browse the repository at this point in the history
timespec: fix timespec to ms helper
  • Loading branch information
was4 authored May 2, 2018
2 parents dd9248b + ffc9d4f commit dba123c
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 dba123c

Please sign in to comment.