Skip to content

Commit

Permalink
Fix r363125 (Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28)),
Browse files Browse the repository at this point in the history
by realy using the MONOTONIC version and not the REALTIME version.

Noticed by:	myfreeweb at github
  • Loading branch information
netchild committed Jul 12, 2020
1 parent 83b8204 commit e37db34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/compat/linux/linux_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ linux_to_native_clockid(clockid_t *n, clockid_t l)
*n = CLOCK_THREAD_CPUTIME_ID;
break;
case LINUX_CLOCK_REALTIME_COARSE:
case LINUX_CLOCK_MONOTONIC_RAW:
*n = CLOCK_REALTIME_FAST;
break;
case LINUX_CLOCK_MONOTONIC_COARSE:
case LINUX_CLOCK_MONOTONIC_RAW:
*n = CLOCK_MONOTONIC_FAST;
break;
case LINUX_CLOCK_BOOTTIME:
Expand Down

0 comments on commit e37db34

Please sign in to comment.