diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-04-09 19:14:24 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-04-14 17:16:02 +0200 |
commit | 74d061700c5a931a02d77da6ecc940c1e1132fe4 (patch) | |
tree | 96ddcb302eae0c21a69425b9f51d8c18b2cfdeda /linux/LinuxProcessList.c | |
parent | f3d9ecaa626f2f9124f5c53b083511572ef47a66 (diff) |
LinuxProcessList_recurseProcTree(): drop non necessary parameter
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r-- | linux/LinuxProcessList.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 0c0fd16c..e51c33ea 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -1249,7 +1249,7 @@ static char* LinuxProcessList_updateTtyDevice(TtyDriver* ttyDrivers, unsigned in return out; } -static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_t parentFd, const char* dirname, const Process* parent, double period, unsigned long long now) { +static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_t parentFd, const char* dirname, const Process* parent, double period) { ProcessList* pl = (ProcessList*) this; const struct dirent* entry; const Settings* settings = pl->settings; @@ -1315,7 +1315,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_ xSnprintf(procFd, sizeof(procFd), "%s/%s", dirFd, entry->d_name); #endif - LinuxProcessList_recurseProcTree(this, procFd, "task", proc, period, now); + LinuxProcessList_recurseProcTree(this, procFd, "task", proc, period); /* * These conditions will not trigger on first occurrence, cause we need to @@ -1341,9 +1341,9 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_ } if (settings->flags & PROCESS_FLAG_IO) - LinuxProcessList_readIoFile(lp, procFd, now); + LinuxProcessList_readIoFile(lp, procFd, pl->realtimeMs); - if (!LinuxProcessList_readStatmFile(lp, procFd, !!(settings->flags & PROCESS_FLAG_LINUX_LRS_FIX), now)) + if (!LinuxProcessList_readStatmFile(lp, procFd, !!(settings->flags & PROCESS_FLAG_LINUX_LRS_FIX), pl->realtimeMs)) goto errorReadingProcess; if ((settings->flags & PROCESS_FLAG_LINUX_SMAPS) && !Process_isKernelThread(proc)) { @@ -1997,5 +1997,5 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) { openat_arg_t rootFd = ""; #endif - LinuxProcessList_recurseProcTree(this, rootFd, PROCDIR, NULL, period, super->realtimeMs); + LinuxProcessList_recurseProcTree(this, rootFd, PROCDIR, NULL, period); } |