Because we now always create it, should it not exists and old data is used from the old files.
Signed-off-by: Aaron Lauterer <[email protected]> Reviewed-by: Laurențiu Leahu-Vlăducu <[email protected]> Tested-by: Laurențiu Leahu-Vlăducu <[email protected]> --- src/PVE/API2/Storage/Status.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index 7bde4ec..ee0aa3b 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -458,10 +458,11 @@ __PACKAGE__->register_method({ code => sub { my ($param) = @_; - 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}); + return PVE::RRD::create_rrd_data( + "pve-storage-9.0/$param->{node}/$param->{storage}", + $param->{timeframe}, + $param->{cf}, + ); }, }); -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
