diff options
Diffstat (limited to 'src/proctable.cpp')
-rw-r--r-- | src/proctable.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp index faab2b0..2cb10c8 100644 --- a/src/proctable.cpp +++ b/src/proctable.cpp @@ -1125,6 +1125,16 @@ proctable_update (ProcData * const procdata) void +proctable_free_table (ProcData * const procdata) +{ + for (ProcInfo::Iterator it(ProcInfo::begin()); it != ProcInfo::end(); ++it) + delete it->second; + + ProcInfo::all.clear(); +} + + +void proctable_clear_tree (ProcData * const procdata) { GtkTreeModel *model; @@ -1139,17 +1149,6 @@ proctable_clear_tree (ProcData * const procdata) } -void -proctable_free_table (ProcData * const procdata) -{ - for (ProcInfo::Iterator it(ProcInfo::begin()); it != ProcInfo::end(); ++it) - delete it->second; - - ProcInfo::all.clear(); -} - - - char* make_loadavg_string(void) { |