From ade1de170534f8dc18fc61ab5bb8496d9680b0f7 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 18 Jan 2021 19:05:18 +1300 Subject: [PATCH] 7 day gamelog limit --- LogWatcher.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LogWatcher.cs b/LogWatcher.cs index 1e3113f5..c01f5000 100644 --- a/LogWatcher.cs +++ b/LogWatcher.cs @@ -110,6 +110,11 @@ namespace VRCX foreach (var fileInfo in fileInfos) { + if (DateTime.Compare(DateTime.Today.AddDays(-7), fileInfo.LastWriteTimeUtc) >= 0) + { + continue; + } + if (bias.CompareTo(fileInfo.LastWriteTimeUtc) <= 0) { fileInfo.Refresh();