[gimp] app: in GimpDashboard, more CPU-usage sampling fixes on Windows



commit dce3942a1d7a51fb10b682f855c091ee24d224af
Author: Ell <ell_se yahoo com>
Date:   Thu Jan 25 07:41:34 2018 -0500

    app: in GimpDashboard, more CPU-usage sampling fixes on Windows

 app/widgets/gimpdashboard.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index fe2fc60..f0cbd49 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)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]