From b922b746bd4c8c880ba740793f4c8a445d5c1ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=87=92=E5=BE=97=E5=8B=A4=E5=BF=AB?= Date: Thu, 14 Mar 2024 12:42:38 +0800 Subject: [PATCH] * --- "\344\273\245\345\233\276\346\220\234\345\233\276/Form1.cs" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/\344\273\245\345\233\276\346\220\234\345\233\276/Form1.cs" "b/\344\273\245\345\233\276\346\220\234\345\233\276/Form1.cs" index edf7294..d4b4b8b 100644 --- "a/\344\273\245\345\233\276\346\220\234\345\233\276/Form1.cs" +++ "b/\344\273\245\345\233\276\346\220\234\345\233\276/Form1.cs" @@ -104,7 +104,7 @@ private async void btnIndex_Click(object sender, EventArgs e) File.WriteAllText("frame_index.json", JsonSerializer.Serialize(_frameIndex), Encoding.UTF8); ReaderWriterLock.ExitWriteLock(); _removingInvalidIndex = false; - lbIndexCount.Text = _index.Count + "文件"; + lbIndexCount.Text = _index.Count + _frameIndex.Count + "文件"; }); } @@ -181,7 +181,7 @@ await Task.Run(() => } }); lbSpeed.Text = $"索引速度: {Math.Round(local.Values.Sum() * 1.0 / sw.Elapsed.TotalSeconds)} items/s({size * 1f / 1048576 / sw.Elapsed.TotalSeconds:N}MB/s)"; - lbIndexCount.Text = _index.Count + "文件"; + lbIndexCount.Text = _index.Count + _frameIndex.Count + "文件"; cbRemoveInvalidIndex.Show(); ReaderWriterLock.EnterWriteLock(); File.WriteAllText("index.json", JsonSerializer.Serialize(_index), Encoding.UTF8);