]> git.proxmox.com Git - pve-storage.git/commitdiff
use PVE::RRD for RRD data
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 11 Nov 2019 10:28:16 +0000 (11:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Nov 2019 11:03:00 +0000 (12:03 +0100)
refactored from PVE::Cluster. same code, same semantics, different file.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/API2/Storage/Status.pm

index 91946acf1473fb4a1507ace982e978338342a69a..1a856fb4c498adefe77f0d3e66cb08172fedd900 100644 (file)
@@ -8,6 +8,7 @@ use File::Basename;
 use PVE::Tools;
 use PVE::INotify;
 use PVE::Cluster;
+use PVE::RRD;
 use PVE::Storage;
 use PVE::API2::Storage::Content;
 use PVE::RESTHandler;
@@ -295,7 +296,7 @@ __PACKAGE__->register_method ({
     code => sub {
        my ($param) = @_;
 
-       return PVE::Cluster::create_rrd_graph(
+       return PVE::RRD::create_rrd_graph(
            "pve2-storage/$param->{node}/$param->{storage}", 
            $param->{timeframe}, $param->{ds}, $param->{cf});
                                              
@@ -339,7 +340,7 @@ __PACKAGE__->register_method ({
     code => sub {
        my ($param) = @_;
 
-       return PVE::Cluster::create_rrd_data(
+       return PVE::RRD::create_rrd_data(
            "pve2-storage/$param->{node}/$param->{storage}", 
            $param->{timeframe}, $param->{cf});       
     }});