[pve-devel] [PATCH v2 storage 3/5] use PVE::RRD for RRD data
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Nov 11 11:28:16 CET 2019
refactored from PVE::Cluster. same code, same semantics, different file.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Notes:
needs dependency on libpve-cluster-perl
PVE/API2/Storage/Status.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm
index 91946ac..1a856fb 100644
--- a/PVE/API2/Storage/Status.pm
+++ b/PVE/API2/Storage/Status.pm
@@ -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});
}});
--
2.20.1
More information about the pve-devel
mailing list