From 898a89f5e3ffacb5056309a46d370f5d03c212dd Mon Sep 17 00:00:00 2001 From: 4cuck <40539855+4cuck@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:17:19 +0200 Subject: [PATCH] display LSH only after 12 hours --- scanner/src/cache_update.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/src/cache_update.rs b/scanner/src/cache_update.rs index 9f4c6ea..cee6995 100644 --- a/scanner/src/cache_update.rs +++ b/scanner/src/cache_update.rs @@ -138,7 +138,7 @@ impl Scanner { let host_ping_data = ping_data.remove(&host.id); let last_healthy = last_healthy_check.remove(&host.id); - let __show_last_seen = last_healthy.map_or(true, |e|(time_now - e) > Duration::hours(4)); + let __show_last_seen = last_healthy.map_or(true, |e|(time_now - e) > Duration::hours(12)); host_statistics.push(CacheHost { last_healthy: last_healthy, __show_last_seen,