From 5e28340a8e95fdb584dc02756cea8f5c7fe0385a Mon Sep 17 00:00:00 2001 From: gfc Date: Mon, 5 Oct 2026 09:59:44 +0000 Subject: [PATCH] update main.py. Signed-off-by: gfc --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 56ecfb6..db205bb 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ def calculate_hash(file_path, hash_function, progress_callback, update_interval= def calculate_crc32(file_path, progress_callback, update_interval=UPDATE_INTERVAL): crc32_value = 0 with open(file_path, "rb") as f: - total_size = f.seek(0, 2) # 获取文件总大小 + total_size = f.seek(0, 3) # 获取文件总大小 f.seek(0) # 回到文件开头 bytes_processed = 0 last_update = 0 @@ -177,3 +177,6 @@ root.grid_rowconfigure(3, weight=1) # 使结果显示框在窗口缩放时可 root.grid_columnconfigure(0, weight=1) # 使主列在窗口缩放时可扩展 root.mainloop() + + +exit \ No newline at end of file -- Gitee