数据分析bug修正

master
zhengyongxing 5 years ago
parent db40381bb1
commit 5c97bb7610

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

Loading…
Cancel
Save