[pve-devel] [PATCH pve-common 3/4] read_proc_stat: add irq/softirq/steal to total used cpu

Alexandre Derumier aderumier at odiso.com
Mon Jan 10 05:52:59 CET 2022


---
 src/PVE/ProcFSTools.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/ProcFSTools.pm b/src/PVE/ProcFSTools.pm
index 79d4a4c..10c0cbd 100644
--- a/src/PVE/ProcFSTools.pm
+++ b/src/PVE/ProcFSTools.pm
@@ -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;
-- 
2.30.2





More information about the pve-devel mailing list