summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2024-01-11 21:09:43 +0100
committerBenBE <BenBE@geshi.org>2024-01-12 07:59:55 +0100
commitb6b9384678fa111d47a8d3074c31490863619d12 (patch)
tree2bf0c113b5febefe78b9b33bc1eeb9ac017670e9 /linux
parent046b6ce4663b65176344f1a24a7adccb75784c2c (diff)
Fix the display of number of running tasks
This was broken by a logic change in 72235d8e. Fixes: #1369
Diffstat (limited to 'linux')
-rw-r--r--linux/LinuxMachine.c3
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;
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy