From 0dc6c9d39c46b71f367ae9eba35668c7063aee83 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Sat, 26 Jul 2025 03:06:20 +0200 Subject: [PATCH] status: rrddata: use new pve-storage-9.0 rrd location if file is present Signed-off-by: Aaron Lauterer Link: https://lore.proxmox.com/20250726010626.1496866-26-a.lauterer@proxmox.com --- src/PVE/API2/Storage/Status.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index c172073..ad8c753 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -415,11 +415,10 @@ __PACKAGE__->register_method({ code => sub { my ($param) = @_; - return PVE::RRD::create_rrd_data( - "pve2-storage/$param->{node}/$param->{storage}", - $param->{timeframe}, - $param->{cf}, - ); + my $path = "pve-storage-9.0/$param->{node}/$param->{storage}"; + $path = "pve2-storage/$param->{node}/$param->{storage}" + if !-e "/var/lib/rrdcached/db/${path}"; + return PVE::RRD::create_rrd_data($path, $param->{timeframe}, $param->{cf}); }, });