From 784baa5a2a6efd7c552639cf70a8a91ed100b7d7 Mon Sep 17 00:00:00 2001 From: Status102 <102887808+status102@users.noreply.github.com> Date: Sat, 29 Nov 2025 19:05:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20debug=E4=B8=8B=E9=9D=9E=E6=A0=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=96=87=E4=BB=B6=E9=99=903=E6=97=A5?= =?UTF-8?q?=E5=86=85=20(#14919)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserControl/Settings/IssueReportUserControlModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs b/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs index 0c0e15a08a..e3fb7cb54e 100644 --- a/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs +++ b/src/MaaWpfGui/ViewModels/UserControl/Settings/IssueReportUserControlModel.cs @@ -126,9 +126,12 @@ public class IssueReportUserControlModel : PropertyChangedBase } } - // ====== part02+:debug 子目录文件按 PartSize 分卷 ====== + // ====== part02:debug 子目录文件按 PartSize 分卷 ====== + var threeDaysAgo = DateTime.Now.AddDays(-3); var debugSubFiles = Directory.EnumerateFiles(debugPath, "*", SearchOption.AllDirectories) - .Where(f => Path.GetDirectoryName(f) != debugPath).ToList(); + .Where(f => Path.GetDirectoryName(f) != debugPath) + .Where(f => new FileInfo(f).LastWriteTime >= threeDaysAgo) + .ToList(); int partNumber = 2; while (debugSubFiles.Count > 0)