diff options
| author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-02-27 09:56:20 +0100 |
|---|---|---|
| committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-02-27 09:56:31 +0100 |
| commit | 538f35d05a9bb25f24b30ea43b07a36cfc043e12 (patch) | |
| tree | edb9621c8b41f5482b6fd9da7871c2b062b00fc8 /src/mod_muc_admin.erl | |
| parent | Remove now() calls that sneaked in in pull requests (diff) | |
Replace code using p1_time_compat wrapper with native functions
Since we now require R19, we shouldn't need that anymore.
There are still couple places where p1_time_compat:unique_timestamp() is
used as there is no direct equivalent.
Diffstat (limited to '')
| -rw-r--r-- | src/mod_muc_admin.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index b3840bc48..f033ce165 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -819,7 +819,7 @@ decide_room(unused, {_Room_name, _Host, Room_pid}, ServerHost, Last_allowed) -> true when (HistorySize == 0) or (JustCreated == true) -> {false, 0}; true -> - Ts_diff = (p1_time_compat:os_system_time(micro_seconds) + Ts_diff = (erlang:system_time(microsecond) - S#state.just_created) div 1000000, {false, Ts_diff}; false -> |
