mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-01-26 11:39:44 +00:00
Bugfix: Fixes #473, Issue with Taskmgr
This commit is contained in:
@@ -267,14 +267,17 @@ static gboolean timeout_process_monitor(
|
||||
|
||||
// Acquire the total CPU time stats
|
||||
//
|
||||
guint total_cpu_delta;
|
||||
guint total_cpu_time;
|
||||
guint total_cpu_delta = 0;
|
||||
guint total_cpu_time = 0;
|
||||
|
||||
process_get_totals(
|
||||
&total_cpu_time
|
||||
);
|
||||
|
||||
total_cpu_delta = total_cpu_time - procmon->last_cpu_time;
|
||||
if (total_cpu_time)
|
||||
{
|
||||
total_cpu_delta = total_cpu_time - procmon->last_cpu_time;
|
||||
}
|
||||
|
||||
// We store a mapping of PIDs that we found to check against later
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user