[gnome-system-monitor] Removed dummy process with 0 PID



commit 451579613b70d7f4bfd4614e3d7bfbc67b2a439b
Author: Robert Roth <robert roth off gmail com>
Date:   Sat Jan 3 16:07:36 2015 +0200

    Removed dummy process with 0 PID

 src/proctable.cpp |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 0874fb3..370d8be 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]