RRD test #2 - Change param method

This commit is contained in:
Luke S Thompson
2023-06-16 18:45:30 +10:00
parent e9a5627187
commit c3c3dd353e

View File

@@ -576,14 +576,14 @@ function pvewhmcs_ClientArea($params) {
}
// Max CPU usage Yearly
$rrd_params=array('timeframe'=>'year','ds'=>'cpu','cf'=>'AVERAGE') ;
$rrd_params = '?timeframe=year&ds=cpu&cf=AVERAGE';
logModuleCall(
'pvewhmcs',
__FUNCTION__,
'rrd_params_pre_send',
$rrd_params
);
$vm_rrd=$proxmox->get('/nodes/'.$first_node.'/'.$guest->vtype.'/'.$params['serviceid'] .'/rrd?',$rrd_params) ;
$vm_rrd=$proxmox->get('/nodes/'.$first_node.'/'.$guest->vtype.'/'.$params['serviceid'] .'/rrd',$rrd_params) ;
$vm_rrd['image']=utf8_decode($vm_rrd['image']) ;
$vm_statistics['cpu']['year']=base64_encode($vm_rrd['image']);