Skip to content

Commit e05a6a9

Browse files
Update src/metrics/hpr_netid_stats.erl
Co-authored-by: Michael Jeffrey <[email protected]>
1 parent 2a5698c commit e05a6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics/hpr_netid_stats.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cleaner_loop() ->
6262
-spec cleanup_old() -> ok.
6363
cleanup_old() ->
6464
Now = erlang:system_time(millisecond),
65-
OneDayAgo = Now - 24 * 60 * 60 * 1000,
65+
OneDayAgo = Now - timer:hours(24),
6666
%% Match-spec: match any {_, _, TS} where TS < OneDayAgo, delete it.
6767
MS = [
6868
{{'_', '_', '$1'}, [{'<', '$1', OneDayAgo}], [true]}

0 commit comments

Comments
 (0)