From c3c3dd353e4ca5b31bfa570fdfcf55eeaf2cf652 Mon Sep 17 00:00:00 2001 From: Luke S Thompson Date: Fri, 16 Jun 2023 18:45:30 +1000 Subject: [PATCH] RRD test #2 - Change param method --- modules/servers/pvewhmcs/pvewhmcs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/servers/pvewhmcs/pvewhmcs.php b/modules/servers/pvewhmcs/pvewhmcs.php index 9490c9e..a9977f0 100644 --- a/modules/servers/pvewhmcs/pvewhmcs.php +++ b/modules/servers/pvewhmcs/pvewhmcs.php @@ -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']);