From 931305554353d63e5627462391ead5810b830530 Mon Sep 17 00:00:00 2001 From: Tom Lally Date: Thu, 1 Sep 2022 17:14:11 +0100 Subject: [PATCH] Correctly read kernel time. --- src/util/SystemInfo/SystemInfoUnix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/SystemInfo/SystemInfoUnix.cpp b/src/util/SystemInfo/SystemInfoUnix.cpp index fc5fd252..5af48bb6 100644 --- a/src/util/SystemInfo/SystemInfoUnix.cpp +++ b/src/util/SystemInfo/SystemInfoUnix.cpp @@ -30,7 +30,7 @@ void QueryProcTime(uint64_t &out_now, uint64_t &out_user, uint64_t &out_kernel) struct tms time_info; clock_t clock_now = times(&time_info); clock_t clock_user = time_info.tms_utime; - clock_t clock_kernel = time_info.tms_utime; + clock_t clock_kernel = time_info.tms_stime; out_now = static_cast(clock_now); out_user = static_cast(clock_user); out_kernel = static_cast(clock_kernel);