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

This commit is contained in:
Ell 2018-01-25 07:41:34 -05:00
parent 6d075aa10a
commit dce3942a1d
1 changed files with 6 additions and 6 deletions

View File

@ -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)
{