]> git.proxmox.com Git - pve-common.git/commitdiff
read_proc_stat: add irq/softirq/steal to total used cpu
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 10 Jan 2022 04:52:59 +0000 (05:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Jan 2022 15:05:26 +0000 (16:05 +0100)
src/PVE/ProcFSTools.pm

index 79d4a4c86d8d1a1df1112d8a68391aa6a7ac2b06..10c0cbd8bd5d0c89d547068ac7809acaed4cfabd 100644 (file)
@@ -173,7 +173,7 @@ sub read_proc_stat {
                $res->{nice} = $2 - $10;
                $res->{system} = $3;
                $res->{idle} = $4;
-               $res->{used} = $1+$2+$3;
+               $res->{used} = $1+$2+$3+$6+$7+$8;
                $res->{iowait} = $5;
                $res->{irq} = $6;
                $res->{softirq} = $7;