From 085c2a88d44ebac41c64c32ee6b796ff64e5331f Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Thu, 10 Aug 2023 22:48:37 +0800 Subject: status: support large file sizes on 64bit systems Convert all unsigned long nums to unsigned long long in order to let the UI safely display sizes >= 4GB --- src/status.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/status.h') diff --git a/src/status.h b/src/status.h index 97f8a4e..5adfff5 100644 --- a/src/status.h +++ b/src/status.h @@ -6,8 +6,8 @@ typedef enum stat_type { SIZE_BYTES, TIME_SECS } stat_type_t; typedef struct status { - unsigned long cur; - unsigned long total; + unsigned long long cur; + unsigned long long total; bool is_done; stat_type_t type; } status_t; -- cgit v1.2.3