diff options
author | Erland Schönbeck <[email protected]> | 2015-04-27 09:39:16 +0200 |
---|---|---|
committer | Erland Schönbeck <[email protected]> | 2015-04-27 09:39:16 +0200 |
commit | 722357d7a23ee4a47277f05aa5fd593bc4de0db0 (patch) | |
tree | 6b68afcb66e3b0899b9b0c37b2114ecf938cf490 /lib/snmp/src/misc | |
parent | e5228853fd16f9817bc26a82730c697fc0ecdf34 (diff) | |
download | otp-722357d7a23ee4a47277f05aa5fd593bc4de0db0.tar.gz otp-722357d7a23ee4a47277f05aa5fd593bc4de0db0.tar.bz2 otp-722357d7a23ee4a47277f05aa5fd593bc4de0db0.zip |
snmp: Remove deprecated warning for erlang:now in snmp_verbority
Diffstat (limited to 'lib/snmp/src/misc')
-rw-r--r-- | lib/snmp/src/misc/snmp_verbosity.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/snmp/src/misc/snmp_verbosity.erl b/lib/snmp/src/misc/snmp_verbosity.erl index f27c31db03..c9192158ef 100644 --- a/lib/snmp/src/misc/snmp_verbosity.erl +++ b/lib/snmp/src/misc/snmp_verbosity.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2000-2012. All Rights Reserved. +%% Copyright Ericsson AB 2000-2015. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -69,7 +69,7 @@ print2(_Verbosity,Format,Arguments) -> timestamp() -> - format_timestamp(now()). + format_timestamp(os:timestamp()). format_timestamp({_N1, _N2, N3} = Now) -> {Date, Time} = calendar:now_to_datetime(Now), @@ -162,4 +162,3 @@ validate(log) -> log; validate(debug) -> debug; validate(trace) -> trace; validate(_) -> silence. - |