|
|
|
@ -1669,9 +1669,12 @@ class StatController extends ThinkController
|
|
|
|
|
if ($start != $end) {
|
|
|
|
|
|
|
|
|
|
$table['duplicate']['active'] = $this->getActiveDeviceNum(['time'=>array('between',[$starttime,$endtime])]);
|
|
|
|
|
|
|
|
|
|
$table['average']['active'] = number_format($table['duplicate']['active']/(((($endtime+1)-$starttime)/86400)),2,'.','');
|
|
|
|
|
// var_dump($endtime-$starttime);die();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
$table['duplicate']['active'] = $table['sum']['active'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@file_put_contents(dirname(__FILE__).'/device_data_foldline.txt',json_encode($export));
|
|
|
|
|