Fix: some times processes does not remove from list
This commit is contained in:
committed by
Simon Steinbeiß
parent
e1b46159dc
commit
e365bf17ad
@@ -432,10 +432,12 @@ xtm_task_manager_update_model (XtmTaskManager *manager)
|
||||
gtk_tree_model_get (manager->model, &cur_iter, XTM_PTV_COLUMN_CPU_STR, &cpu_str, XTM_PTV_COLUMN_TIMESTAMP, &old_timestamp, XTM_PTV_COLUMN_PID, &pid, -1);
|
||||
found = (g_strcmp0 (cpu_str, "-") == 0);
|
||||
g_free (cpu_str);
|
||||
if (found && (timestamp - old_timestamp) > TIMESTAMP_DELTA)
|
||||
if (found)
|
||||
{
|
||||
G_DEBUG_FMT ("Remove old task %d", pid);
|
||||
model_remove_tree_iter (manager->model, &cur_iter);
|
||||
if ((timestamp - old_timestamp) > TIMESTAMP_DELTA) {
|
||||
G_DEBUG_FMT ("Remove old task %d", pid);
|
||||
model_remove_tree_iter (manager->model, &cur_iter);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user