From f4c06141be7e59755f64b6e1078e4789a81cfc62 Mon Sep 17 00:00:00 2001 From: jack Date: Tue, 15 May 2018 14:52:01 +0800 Subject: [PATCH] update statcontroller --- .../admin/controllers/StatController.php | 6 ---- .../admin/views/scripts/stat/index.phtml | 28 ++++++++----------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/application/admin/controllers/StatController.php b/application/admin/controllers/StatController.php index 9d93243b..5b20f44f 100644 --- a/application/admin/controllers/StatController.php +++ b/application/admin/controllers/StatController.php @@ -42,12 +42,6 @@ class Admin_StatController extends Zend_Controller_Action $onlinesize = $res->fetch(); $this->view->onlinesize = $onlinesize; - $sql="select sum(configvalue::real)/1024/1024/1024 as num from g6ftpusersettings where userid in (select id from g6ftpusers where name like 'westdc%' or name='newwestdc') and configname='StatsDownloaded'"; - $res = $this->db->query($sql); - $onlinesize = $res->fetch(); - $this->view->onlineg6size = $onlinesize; - - }//indexAction 首页 function unitAction() diff --git a/application/admin/views/scripts/stat/index.phtml b/application/admin/views/scripts/stat/index.phtml index 729a3681..6aceded6 100644 --- a/application/admin/views/scripts/stat/index.phtml +++ b/application/admin/views/scripts/stat/index.phtml @@ -10,17 +10,17 @@ $this->headScript()->appendFile('/js/jquery.masonry.min.js'); ?>
@@ -42,11 +42,7 @@ 在线下载数据量(估计量,偏大) onlinesize['num'],2);?> - - G6在线下载数据量(精确量) - onlineg6size['num'],2);?> - - +