From 14cb1d1f65f0b4fdc90f8dd606d7c6b4c34a97b5 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Fri, 20 Dec 2024 04:34:21 +0800 Subject: [PATCH] humanTimeUnit 28g --- linux/GPUMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/GPUMeter.c b/linux/GPUMeter.c index a3e2dd906..6854eaf37 100644 --- a/linux/GPUMeter.c +++ b/linux/GPUMeter.c @@ -57,7 +57,7 @@ static int humanTimeUnit(char* buffer, size_t size, unsigned long long totalNano unsigned long long totalSeconds = value / 10000; if (totalSeconds < 60) { int width = 4; - unsigned int seconds = (unsigned int)(value / 10000); + unsigned int seconds = (unsigned int)totalSeconds; unsigned int fraction = (unsigned int)(value % 10000); for (unsigned int limit = 1; seconds >= limit; limit *= 10) { width--;