Commit dce3942a authored by Ell's avatar Ell

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

parent 6d075aa1
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment