From 3b59243ff76935913ef4b4b4336e8f90ac46744b Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Fri, 20 Dec 2024 04:34:21 +0800 Subject: [PATCH] humanTimeUnit 28b --- linux/GPUMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/GPUMeter.c b/linux/GPUMeter.c index 704c3ff52..3e3dc4b8b 100644 --- a/linux/GPUMeter.c +++ b/linux/GPUMeter.c @@ -45,7 +45,7 @@ static int humanTimeUnit(char* buffer, size_t size, unsigned long long totalNano unsigned long long value = totalNanoseconds / 100; if (value < 1000) - return xSnprintf(buffer, size, "%u.%uus", (unsigned int)(value / 10), (unsigned int)(value % 10)); + return xSnprintf(buffer, size, "%u.%uus", (unsigned int)(value / 10), (unsigned int)((totalNanoseconds % 1000) / 100)); value /= 10; // microseconds