[pve-devel] SPAM: [PATCH v2 pve-container 1/1] vmstatus: add pressure stats

Alexandre Derumier aderumier at odiso.com
Wed Feb 17 18:08:50 CET 2021


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 src/PVE/LXC.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index bae236b..be71ef1 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -297,6 +297,8 @@ sub vmstatus {
 	} else {
 	    $d->{cpu} = 0;
 	}
+
+	$d->{pressure} = $cgroups->get_pressure_stat();
     }
 
     my $netdev = PVE::ProcFSTools::read_proc_net_dev();
-- 
2.20.1





More information about the pve-devel mailing list