Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
ldqk committed Mar 14, 2024
1 parent 492859d commit b922b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 以图搜图/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "文件";
});
}

Expand Down Expand Up @@ -181,7 +181,7 @@ private async void btnIndex_Click(object sender, EventArgs e)
}
});
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);
Expand Down

0 comments on commit b922b74

Please sign in to comment.