|
|
@ -1668,8 +1668,8 @@ class StatController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
if ($start != $end) {
|
|
|
|
if ($start != $end) {
|
|
|
|
|
|
|
|
|
|
|
|
$table['sum']['active'] = $this->getActiveDeviceNum(['time'=>array('between',[$starttime,$endtime])]);
|
|
|
|
$table['duplicate']['active'] = $this->getActiveDeviceNum(['time'=>array('between',[$starttime,$endtime])]);
|
|
|
|
$table['average']['active'] = number_format($table['sum']['active']/(((($endtime+1)-$starttime)/86400)),2,'.','');
|
|
|
|
$table['average']['active'] = number_format($table['duplicate']['active']/(((($endtime+1)-$starttime)/86400)),2,'.','');
|
|
|
|
// var_dump($endtime-$starttime);die();
|
|
|
|
// var_dump($endtime-$starttime);die();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|