Line 0
Link Here
|
|
|
1 |
--- src/task-manager.c.orig 2019-12-09 09:12:44 UTC |
2 |
+++ src/task-manager.c |
3 |
@@ -432,10 +432,12 @@ xtm_task_manager_update_model (XtmTaskManager *manager |
4 |
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); |
5 |
found = (g_strcmp0 (cpu_str, "-") == 0); |
6 |
g_free (cpu_str); |
7 |
- if (found && (timestamp - old_timestamp) > TIMESTAMP_DELTA) |
8 |
+ if (found) |
9 |
{ |
10 |
- G_DEBUG_FMT ("Remove old task %d", pid); |
11 |
- model_remove_tree_iter (manager->model, &cur_iter); |
12 |
+ if ((timestamp - old_timestamp) > TIMESTAMP_DELTA) { |
13 |
+ G_DEBUG_FMT ("Remove old task %d", pid); |
14 |
+ model_remove_tree_iter (manager->model, &cur_iter); |
15 |
+ } |
16 |
continue; |
17 |
} |
18 |
|