添加G6下载统计
This commit is contained in:
parent
bac94c2dc9
commit
3be5de845c
|
@ -90,7 +90,10 @@ class Admin_StatController extends Zend_Controller_Action
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
$onlinesize = $res->fetch();
|
$onlinesize = $res->fetch();
|
||||||
$this->view->onlinesize = $onlinesize;
|
$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 首页
|
}//indexAction 首页
|
||||||
|
|
||||||
|
|
|
@ -60,17 +60,21 @@
|
||||||
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>总下载数据量</td>
|
<td>总下载数据量(估计量,偏大)</td>
|
||||||
<td><?php echo round($this->allsize['num'],2);?></td>
|
<td><?php echo round($this->allsize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>离线下载数据量</td>
|
<td>离线下载数据量(从09年4月)</td>
|
||||||
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>在线下载数据量</td>
|
<td>在线下载数据量(估计量,偏大)</td>
|
||||||
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>G6在线下载数据量(精确量)</td>
|
||||||
|
<td><?php echo round($this->onlineg6size['num'],2);?></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue