diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index 9d95c8a..98e0c7e 100755 --- a/script/linedata/get_line_list.php +++ b/script/linedata/get_line_list.php @@ -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'] = '满载';