From 912cd815eef3fb3c01b275bbbd1a10a8244ba2e5 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 5 Aug 2010 09:05:33 +0000 Subject: [PATCH] Removed dummy stats send/receive methods git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19364 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dbChannelStatus/class_dbChannelStatus.inc | 60 ------------------- .../dashBoard/dbChannelStatus/contents.tpl | 19 ------ 2 files changed, 79 deletions(-) diff --git a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc index 394b5b187..eec7eb5c7 100644 --- a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc +++ b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc @@ -1,13 +1,7 @@ config->get_cfg_value("core","gosaRpcServer") != ""){ - $tmp = stats::dumpTables(); - $dump = array(); - foreach($tmp as $entry){ - $dump[] = array_values($entry); - } - - $rpc = $this->config->getRpcHandle( - "http://10.3.64.59:4000", - "65717fe6-9e3e-11df-b010-5452005f1250", - "WyukwauWoid2", - TRUE); - $rpc->updateInstanceStatus($dump); - if(!$rpc->success()){ - msg_dialog::display(_("Error"),msgPool::rpcError($rpc->get_error()),ERROR_DIALOG); - } - } - } - - // Transmit daily statistics to GOsa-Server - if(isset($_POST['receiveStatistics'])){ - - // First try to retrieve values via RPC - if ($this->config->get_cfg_value("core","gosaRpcServer") != ""){ - $rpc = $this->config->getRpcHandle( - "http://10.3.64.59:4000", - "65717fe6-9e3e-11df-b010-5452005f1250", - "WyukwauWoid2", - TRUE); - $res = $rpc->getInstanceStats(); - if(!$rpc->success()){ - msg_dialog::display(_("Error"),msgPool::rpcError($rpc->get_error()),ERROR_DIALOG); - } - - $all = array_sum($res['category_count']); - $tmp = array(); - $tmpRendered = array(); - foreach($res['category_count'] as $category => $count){ - $tmp[$category] = floor(($count / $all) * 10000) / 100; - $tmpRendered[$category] = progressbar($tmp[$category]); - } - $this->receivedStats = $tmpRendered; - } - } - - - - $smarty = get_smarty(); - $smarty->assign("receivedStats",$this->receivedStats); - $channel = array(); $channel[] = array( 'icon' => image('images/true.png'), diff --git a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/contents.tpl b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/contents.tpl index a95cd208b..1b1de976f 100644 --- a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/contents.tpl +++ b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/contents.tpl @@ -1,22 +1,3 @@ -

{t}Transmit daliy stats{/t} - - - - -{if $receivedStats} -

{t}Transmit daliy stats{/t}

- - {foreach from=$receivedStats key=key item=item} - - - - - {/foreach} -
{$key}{$item}
-{/if} - -
-

{t}Channels{/t}

{$channelList} -- 2.30.2