status: rrddata: use new pve-storage-9.0 rrd location if file is present
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com> Link: https://lore.proxmox.com/20250726010626.1496866-26-a.lauterer@proxmox.com
This commit is contained in:
committed by
Thomas Lamprecht
parent
868de9b1a8
commit
0dc6c9d39c
@ -415,11 +415,10 @@ __PACKAGE__->register_method({
|
|||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
return PVE::RRD::create_rrd_data(
|
my $path = "pve-storage-9.0/$param->{node}/$param->{storage}";
|
||||||
"pve2-storage/$param->{node}/$param->{storage}",
|
$path = "pve2-storage/$param->{node}/$param->{storage}"
|
||||||
$param->{timeframe},
|
if !-e "/var/lib/rrdcached/db/${path}";
|
||||||
$param->{cf},
|
return PVE::RRD::create_rrd_data($path, $param->{timeframe}, $param->{cf});
|
||||||
);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user