mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 11:22:34 +00:00
use PVE::RRD for RRD data
refactored from PVE::Cluster. same code, same semantics, different file. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
fe57e096cc
commit
516a7948cd
@ -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});
|
||||
}});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user