Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Chabrowski
xfce4-taskmanager
Commits
e365bf17
Commit
e365bf17
authored
Jul 09, 2020
by
Rozhuk Ivan
Committed by
Simon Steinbeiß
Jul 14, 2020
Browse files
Fix: some times processes does not remove from list
parent
e1b46159
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/task-manager.c
View file @
e365bf17
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment