update statcontroller

This commit is contained in:
jack 2018-05-15 14:52:01 +08:00
parent 9afb42a31b
commit f4c06141be
2 changed files with 12 additions and 22 deletions

View File

@ -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()

View File

@ -42,10 +42,6 @@
<td>在线下载数据量(估计量,偏大)</td>
<td><?php echo round($this->onlinesize['num'],2);?></td>
</tr>
<tr>
<td>G6在线下载数据量精确量</td>
<td><?php echo round($this->onlineg6size['num'],2);?></td>
</tr>
</table>
</div>