From dce3942a1d7a51fb10b682f855c091ee24d224af Mon Sep 17 00:00:00 2001 From: Ell Date: Thu, 25 Jan 2018 07:41:34 -0500 Subject: [PATCH] app: in GimpDashboard, more CPU-usage sampling fixes on Windows --- app/widgets/gimpdashboard.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c index fe2fc60b0b..f0cbd49d20 100644 --- a/app/widgets/gimpdashboard.c +++ b/app/widgets/gimpdashboard.c @@ -1568,13 +1568,13 @@ gimp_dashboard_sample_cpu_usage (GimpDashboard *dashboard, GetSystemTimeAsFileTime (&system_time); - curr_time = ((guint64) system_time.dwLowDateTime << 32) | - (guint64) system_time.dwHighDateTime; + curr_time = ((guint64) system_time.dwHighDateTime << 32) | + (guint64) system_time.dwLowDateTime; - curr_usage = ((guint64) process_kernel_time.dwLowDateTime << 32) | - (guint64) process_kernel_time.dwHighDateTime; - curr_usage += ((guint64) process_user_time.dwLowDateTime << 32) | - (guint64) process_user_time.dwHighDateTime; + curr_usage = ((guint64) process_kernel_time.dwHighDateTime << 32) | + (guint64) process_kernel_time.dwLowDateTime; + curr_usage += ((guint64) process_user_time.dwHighDateTime << 32) | + (guint64) process_user_time.dwLowDateTime; if (prev_time) {