From 516a7948cd12c23139f0d0a40286ab907d27f17d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 11 Nov 2019 11:28:36 +0100 Subject: [PATCH] use PVE::RRD for RRD data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit refactored from PVE::Cluster. same code, same semantics, different file. Signed-off-by: Fabian Grünbichler --- PVE/API2/Nodes.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 715c8563..ddeafbef 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -48,6 +48,7 @@ use Digest::MD5; use Digest::SHA; use PVE::API2::Disks; use PVE::DataCenterConfig; +use PVE::RRD; use JSON; use Socket; @@ -593,7 +594,7 @@ __PACKAGE__->register_method({ code => sub { my ($param) = @_; - return PVE::Cluster::create_rrd_graph( + return PVE::RRD::create_rrd_graph( "pve2-node/$param->{node}", $param->{timeframe}, $param->{ds}, $param->{cf}); @@ -635,7 +636,7 @@ __PACKAGE__->register_method({ code => sub { my ($param) = @_; - return PVE::Cluster::create_rrd_data( + return PVE::RRD::create_rrd_data( "pve2-node/$param->{node}", $param->{timeframe}, $param->{cf}); }}); -- 2.39.5