From 91c46dbdd4f580e8a3e372f2c25e4c903eaee224 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Mon, 25 Apr 2022 15:44:51 -0500 Subject: [PATCH] only show reports from the last 24 hours --- WebfrontCore/Controllers/ActionController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebfrontCore/Controllers/ActionController.cs b/WebfrontCore/Controllers/ActionController.cs index d3d8db325..b9f482705 100644 --- a/WebfrontCore/Controllers/ActionController.cs +++ b/WebfrontCore/Controllers/ActionController.cs @@ -327,7 +327,7 @@ namespace WebfrontCore.Controllers new ServerInfo { Name = server.Hostname, - Reports = server.Reports + Reports = server.Reports.Where(report => (DateTime.UtcNow - report.ReportedOn).TotalHours <= 24).ToList() }); return View("Partials/_Reports", serverInfo);