线路表

This commit is contained in:
wanyongkang
2020-11-26 09:48:20 +08:00
parent d3c353ccd0
commit 5b806ff402

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-11-03 11:04:15
* @LastEditors: Please set LastEditors
* @LastEditTime: 2020-11-26 09:42:34
* @LastEditTime: 2020-11-26 09:48:10
*/
$is_script = 1;
@@ -222,12 +222,12 @@ function xingxing_getList($data, &$file, &$all, $exit)
$record['daikuan'] = $info['bandwidth'];
$record['onlineuser'] = '';
$record['maxuser'] = '';
$record['online'] = $online[$info['online']];
$record['online'] = ($info['online'] == 0) ? '故障' : '正常';
$status_flag = $info['onlineuser'] / $info['maxuser'];
$record['status'] = '';
if ($status_flag < 1) {
if ($status_flag < 0.9) {
$record['status'] = '正常';
} elseif ($status_flag < 1.3) {
} elseif ($status_flag < 1) {
$record['status'] = '拥挤';
} else {
$record['status'] = '满载';
@@ -788,7 +788,7 @@ function xianfeng_getList($data, &$file, &$all, $exit)
$record['status'] = '';
if ($status_flag < 0.9) {
$record['status'] = '正常';
} elseif ($status_flag < 0.95) {
} elseif ($status_flag < 0.1) {
$record['status'] = '拥挤';
} else {
$record['status'] = '满载';