Continue to update generic data in paused mode

Generic data, as CPU and memory usage, are used by Meters.
In paused mode they would stop receiving updates and especially Graph
Meters would stop showing continuous data.

Improves: #214
Closes: #253
This commit is contained in:
Christian Göttsche
2020-10-13 16:03:37 +02:00
parent 0db398d4c3
commit 96e2a4259e
18 changed files with 61 additions and 24 deletions

View File

@ -24,8 +24,13 @@ void ProcessList_delete(ProcessList* this) {
free(this);
}
void ProcessList_goThroughEntries(ProcessList* super) {
bool preExisting = true;
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
// in pause mode only gather global data for meters (CPU/memory/...)
if (pauseProcessUpdate)
return;
bool preExisting = true;
Process *proc;
proc = ProcessList_getProcess(super, 1, &preExisting, UnsupportedProcess_new);

View File

@ -11,6 +11,6 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
void ProcessList_delete(ProcessList* this);
void ProcessList_goThroughEntries(ProcessList* super);
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
#endif