This commit is contained in:
turtled 2020-01-16 15:26:56 +08:00
parent 050409b653
commit 66a7845bdc
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ do_check(Who) when is_tuple(Who) ->
case mnesia:dirty_read(?BANNED_TAB, Who) of
[] -> false;
[#banned{until = Until}] ->
Until > erlang:system_time(millisecond)
Until > erlang:system_time(second)
end.
-spec(create(emqx_types:banned()) -> ok).