Signed-off-by: Alexandre Derumier <[email protected]>
---
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
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel