diff options
author | Benny Baumann <BenBE@geshi.org> | 2024-01-11 21:09:43 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-01-12 07:59:55 +0100 |
commit | b6b9384678fa111d47a8d3074c31490863619d12 (patch) | |
tree | 2bf0c113b5febefe78b9b33bc1eeb9ac017670e9 /linux/LinuxMachine.c | |
parent | 046b6ce4663b65176344f1a24a7adccb75784c2c (diff) |
Fix the display of number of running tasks
This was broken by a logic change in 72235d8e.
Fixes: #1369
Diffstat (limited to 'linux/LinuxMachine.c')
-rw-r--r-- | linux/LinuxMachine.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/LinuxMachine.c b/linux/LinuxMachine.c index ae2930d4..50d181e1 100644 --- a/linux/LinuxMachine.c +++ b/linux/LinuxMachine.c @@ -489,8 +489,7 @@ static void LinuxMachine_scanCPUTime(LinuxMachine* this) { char buffer[PROC_LINE_LENGTH + 1]; while (fgets(buffer, sizeof(buffer), file)) { if (String_startsWith(buffer, "procs_running")) { - ProcessTable* pt = (ProcessTable*) super->processTable; - pt->runningTasks = strtoul(buffer + strlen("procs_running"), NULL, 10); + this->runningTasks = strtoul(buffer + strlen("procs_running"), NULL, 10); break; } } |