Commit 45157961 authored by Robert Roth's avatar Robert Roth

Removed dummy process with 0 PID

parent 45e87896
......@@ -1136,12 +1136,6 @@ proctable_update (GsmApplication *app)
app->cpu_total_time = MAX(cpu.total - app->cpu_total_time_last, 1);
app->cpu_total_time_last = cpu.total;
#if 1
proclist.number++;
pid_list = (pid_t*) g_realloc(pid_list, proclist.number * sizeof *pid_list);
pid_list[proclist.number - 1] = 0;
#endif
// FIXME: not sure if glibtop always returns a sorted list of pid
// but it is important otherwise refresh_list won't find the parent
std::sort(pid_list, pid_list + proclist.number);
......
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