[pve-devel] [PATCH pve-common 1/2] cgroup: get_pressure_stat: use controllers in get_path
Alexandre Derumier
aderumier at odiso.com
Wed May 25 08:52:13 CEST 2022
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
src/PVE/CGroup.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/CGroup.pm b/src/PVE/CGroup.pm
index 44b3297..d3873fd 100644
--- a/src/PVE/CGroup.pm
+++ b/src/PVE/CGroup.pm
@@ -380,7 +380,8 @@ sub get_pressure_stat {
},
};
- my ($path, $version) = $self->get_path(undef, 1);
+ my ($path, $version) = $self->get_any_path(1, 'cpu', 'memory', 'io');
+
if (!defined($path)) {
return $res; # container or VM most likely isn't running, retrun zero stats
} elsif ($version == 1) {
--
2.30.2
More information about the pve-devel
mailing list