fix: country code

This commit is contained in:
hamster1963
2024-11-27 08:56:17 +08:00
parent d36f740650
commit d98a42fcd8
3 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ export function formatNezhaInfo(serverInfo: NezhaAPI) {
swap: (serverInfo.state.swap_used / serverInfo.host.swap_total) * 100 || 0,
disk: (serverInfo.state.disk_used / serverInfo.host.disk_total) * 100 || 0,
stg: (serverInfo.state.disk_used / serverInfo.host.disk_total) * 100 || 0,
country_code: serverInfo.host.country_code,
country_code: serverInfo.country_code,
};
}