aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/001_fix_number_of_running_tasks.patch
blob: 1d59b261e5bf9eccb939225499b489573176d759 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From b6b9384678fa111d47a8d3074c31490863619d12 Mon Sep 17 00:00:00 2001
From: Benny Baumann <BenBE@geshi.org>
Date: Thu, 11 Jan 2024 21:09:43 +0100
Subject: [PATCH] Fix the display of number of running tasks

This was broken by a logic change in 72235d8e.

Fixes: #1369
---
 linux/LinuxMachine.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/linux/LinuxMachine.c b/linux/LinuxMachine.c
index ae2930d40..50d181e16 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