mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-12 07:10:43 +08:00
🪄 优化v1数据中,没上报内容为空的情况
This commit is contained in:
parent
b6d8457649
commit
17e548abb1
@ -14,7 +14,7 @@ window.$$nazhuaConfig = {
|
||||
// listServerStatusType: 'progress', // 服务器状态类型--列表
|
||||
// listServerRealTimeShowLoad: true, // 列表显示服务器实时负载
|
||||
// detailServerStatusType: 'progress', // 服务器状态类型--详情页
|
||||
// serverStatusLinear: true, // 服务器状态渐变线性显示
|
||||
serverStatusLinear: true, // 服务器状态渐变线性显示
|
||||
// disableSarasaTermSC: true, // 禁用Sarasa Term SC字体
|
||||
// hideWorldMap: false, // 隐藏地图
|
||||
// hideHomeWorldMap: false, // 隐藏首页地图
|
||||
|
||||
@ -100,7 +100,11 @@ export default function (v1Data) {
|
||||
v0Data[key] = Mapping.each(magics[$magic[1]], v1Data);
|
||||
if (key === 'State') {
|
||||
// 修复Load1、Load5、Load15字段为空时的问题
|
||||
['Load1', 'Load5', 'Load15'].forEach((k) => {
|
||||
[
|
||||
'Load1', 'Load5', 'Load15',
|
||||
'NetInTransfer', 'NetOutTransfer',
|
||||
'NetInSpeed', 'NetOutSpeed',
|
||||
].forEach((k) => {
|
||||
if (!validate.isSet(v0Data[key][k])) {
|
||||
v0Data[key][k] = 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user