mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-29 09:15:19 +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 Digest::SHA;
|
||||||
use PVE::API2::Disks;
|
use PVE::API2::Disks;
|
||||||
use PVE::DataCenterConfig;
|
use PVE::DataCenterConfig;
|
||||||
|
use PVE::RRD;
|
||||||
use JSON;
|
use JSON;
|
||||||
use Socket;
|
use Socket;
|
||||||
|
|
||||||
@ -593,7 +594,7 @@ __PACKAGE__->register_method({
|
|||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
return PVE::Cluster::create_rrd_graph(
|
return PVE::RRD::create_rrd_graph(
|
||||||
"pve2-node/$param->{node}", $param->{timeframe},
|
"pve2-node/$param->{node}", $param->{timeframe},
|
||||||
$param->{ds}, $param->{cf});
|
$param->{ds}, $param->{cf});
|
||||||
|
|
||||||
@ -635,7 +636,7 @@ __PACKAGE__->register_method({
|
|||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
return PVE::Cluster::create_rrd_data(
|
return PVE::RRD::create_rrd_data(
|
||||||
"pve2-node/$param->{node}", $param->{timeframe}, $param->{cf});
|
"pve2-node/$param->{node}", $param->{timeframe}, $param->{cf});
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user