线路表
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-11-03 11:04:15
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-11-13 15:19:10
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @LastEditTime: 2020-11-26 09:37:42
|
||||
*/
|
||||
|
||||
$is_script = 1;
|
||||
@@ -219,11 +219,19 @@ function xingxing_getList($data, &$file, &$all, $exit)
|
||||
}
|
||||
|
||||
$record['ip'] = strpos($info['description2'], '-') ? explode('-', $info['description2'])[1] : $info['description2'];
|
||||
$record['daikuan'] = '';
|
||||
$record['daikuan'] = $info['bandwidth'];
|
||||
$record['onlineuser'] = '';
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = $online[$info['online']];
|
||||
$status_flag = $info['onlineuser'] / $info['maxuser'];
|
||||
$record['status'] = '';
|
||||
if ($status_flag < 1) {
|
||||
$record['status'] = '正常';
|
||||
} elseif ($status_flag < 1.3) {
|
||||
$record['status'] = '拥挤';
|
||||
} else {
|
||||
$record['status'] = '满载';
|
||||
}
|
||||
$record['nasname'] = $info['nasname'];
|
||||
if (!in_array($record['nasname'], $exit) && !in_array($record['nasname'], $dnx_has_exit)) {
|
||||
fputcsv($dnx_exit, ['星星', $record['nasname'], date('Y-m-d H:i:s')]);
|
||||
|
||||
Reference in New Issue
Block a user