aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2015-03-25 15:57:53 +0100
committerRickard Green <[email protected]>2015-03-25 15:57:53 +0100
commitf5c57ee1130daff8e7fb8bf9ad4f057a019f59f6 (patch)
tree2a6f2e4e7a6961d60153466979363fcd9de02d16
parent7d3a9c237dcc476dfa1a0d6e10cfe6c5e3b8ce44 (diff)
parent047811828ebac3c4909b8056b8268205c34b693c (diff)
downloadotp-f5c57ee1130daff8e7fb8bf9ad4f057a019f59f6.tar.gz
otp-f5c57ee1130daff8e7fb8bf9ad4f057a019f59f6.tar.bz2
otp-f5c57ee1130daff8e7fb8bf9ad4f057a019f59f6.zip
Merge branch 'rickard/time_api/OTP-11997'
* rickard/time_api/OTP-11997: Fix erts_sys_hrtime() fallback
-rw-r--r--erts/emulator/sys/unix/sys_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/sys_time.c b/erts/emulator/sys/unix/sys_time.c
index e764607c25..ea021a27cf 100644
--- a/erts/emulator/sys/unix/sys_time.c
+++ b/erts/emulator/sys/unix/sys_time.c
@@ -790,7 +790,7 @@ erts_os_monotonic_time(void)
ErtsSysHrTime
erts_sys_hrtime(void)
{
- return (ErtsSysHrTime) erts_os_system_time();
+ return (ErtsSysHrTime) ERTS_MONOTONIC_TO_NSEC(erts_os_system_time());
}
#endif