status: rrddata: use fixed pve-storage-9.0 path

Because we now always create it, should it not exists and old data is
used from the old files.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu@proxmox.com>
Tested-by: Laurențiu Leahu-Vlăducu <l.leahu-vladucu@proxmox.com>
Link: https://lore.proxmox.com/20251103220024.2488005-8-a.lauterer@proxmox.com
This commit is contained in:
Aaron Lauterer
2025-11-03 23:00:22 +01:00
committed by Thomas Lamprecht
parent 0d392b295c
commit aa8cd93ca4

View File

@ -498,10 +498,11 @@ __PACKAGE__->register_method({
code => sub { code => sub {
my ($param) = @_; my ($param) = @_;
my $path = "pve-storage-9.0/$param->{node}/$param->{storage}"; return PVE::RRD::create_rrd_data(
$path = "pve2-storage/$param->{node}/$param->{storage}" "pve-storage-9.0/$param->{node}/$param->{storage}",
if !-e "/var/lib/rrdcached/db/${path}"; $param->{timeframe},
return PVE::RRD::create_rrd_data($path, $param->{timeframe}, $param->{cf}); $param->{cf},
);
}, },
}); });