aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorEiichi Tsukata <[email protected]>2014-04-23 21:46:21 +0900
committerEiichi Tsukata <[email protected]>2014-04-28 14:57:43 +0900
commite492b43c3e4366e865e5f1c34d0834df2a91d490 (patch)
treea362d082e4f037d7c49f93e40363d31e821cab4f /erts/emulator/beam
parent07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff)
downloadotp-e492b43c3e4366e865e5f1c34d0834df2a91d490.tar.gz
otp-e492b43c3e4366e865e5f1c34d0834df2a91d490.tar.bz2
otp-e492b43c3e4366e865e5f1c34d0834df2a91d490.zip
Add erlang:system_info(tolerant_timeofday)
Add erlang:system_info(tolerant_timeofday), an API to check whether compensation for sudden changes of system time is enabled or not.
Diffstat (limited to 'erts/emulator/beam')
-rwxr-xr-xerts/emulator/beam/erl_bif_info.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 2adba9b240..4d5e55aaf5 100755
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -2691,6 +2691,11 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1)
else if (ERTS_IS_ATOM_STR("ets_limit",BIF_ARG_1)) {
BIF_RET(make_small(erts_db_get_max_tabs()));
}
+ else if (ERTS_IS_ATOM_STR("tolerant_timeofday",BIF_ARG_1)) {
+ BIF_RET(erts_disable_tolerant_timeofday
+ ? am_disabled
+ : am_enabled);
+ }
BIF_ERROR(BIF_P, BADARG);
}