update statcontroller
This commit is contained in:
parent
9afb42a31b
commit
f4c06141be
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue