mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: type
This commit is contained in:
parent
e95874f474
commit
7a360204d1
@ -47,7 +47,8 @@ async function GetNezhaData() {
|
||||
const data: ServerApi = {
|
||||
live_servers: 0,
|
||||
offline_servers: 0,
|
||||
total_bandwidth: 0,
|
||||
total_in_bandwidth: 0,
|
||||
total_out_bandwidth: 0,
|
||||
result: [],
|
||||
};
|
||||
const timestamp = Date.now() / 1000;
|
||||
@ -60,7 +61,8 @@ async function GetNezhaData() {
|
||||
data.live_servers += 1;
|
||||
element.online_status = true;
|
||||
}
|
||||
data.total_bandwidth += element.status.NetOutTransfer;
|
||||
data.total_in_bandwidth += element.status.NetInTransfer;
|
||||
data.total_out_bandwidth += element.status.NetOutTransfer;
|
||||
|
||||
delete element.ipv4;
|
||||
delete element.ipv6;
|
||||
|
Loading…
Reference in New Issue
Block a user