aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-06-05 18:09:18 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-06-08 14:03:37 +0200
commit2150c3a4dff01eef9479cbdb14e2a2d2b4cbe467 (patch)
tree6e03bb2af41fbc41c9046c58c260d9459adbe23f
parente5101396c86b5bcbd933f82b4ef36dcf3d9ace61 (diff)
downloadotp-2150c3a4dff01eef9479cbdb14e2a2d2b4cbe467.tar.gz
otp-2150c3a4dff01eef9479cbdb14e2a2d2b4cbe467.tar.bz2
otp-2150c3a4dff01eef9479cbdb14e2a2d2b4cbe467.zip
kernel: Fix inet time conversion
-rw-r--r--lib/kernel/src/inet_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/inet_db.erl b/lib/kernel/src/inet_db.erl
index abe207295f..535c11271e 100644
--- a/lib/kernel/src/inet_db.erl
+++ b/lib/kernel/src/inet_db.erl
@@ -1372,7 +1372,7 @@ cache_rr(_Db, Cache, RR) ->
ets:insert(Cache, RR).
times() ->
- erlang:monotonic_time(1).
+ erlang:convert_time_unit(erlang:monotonic_time() - erlang:system_info(start_time),native,seconds).
%% lookup and remove old entries