1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 11:53:25 +08:00

UXAssist: fix recent upload result

This commit is contained in:
2026-03-12 00:30:03 +08:00
parent c823e72c67
commit f7fc9aaab0
2 changed files with 13 additions and 1 deletions

View File

@@ -892,7 +892,9 @@ public static class UIFunctions
return;
}
StringBuilder sb = new();
for (var i = Math.Min(_clusterUploadResultsCount, 10) - 1; i >= 0; i--)
var start = _clusterUploadResultsCount;
var end = start > 10 ? start - 10 : 0;
for (var i = start - 1; i >= end; i--)
{
var res = _clusterUploadResults[(i + _clusterUploadResultsHead) % ClusterUploadResultKeepCount];
sb.AppendLine($"{res.UploadTime.ToString("yyyy-MM-dd HH:mm:ss")} - {((res.Result is 0 or 20) ? "Success".Translate() : ("Failure: ".Translate() + res.Result.ToString()))} - {res.RequestTime:F2}s");