feat: gpu chart

This commit is contained in:
hamster1963
2024-12-06 18:03:53 +08:00
parent 67147afefc
commit 0257d24c75
2 changed files with 128 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ export function formatNezhaInfo(now: number, serverInfo: NezhaServer) {
return {
...serverInfo,
cpu: serverInfo.state.cpu || 0,
gpu: serverInfo.state.gpu || [],
process: serverInfo.state.process_count || 0,
up: serverInfo.state.net_out_speed / 1024 / 1024 || 0,
down: serverInfo.state.net_in_speed / 1024 / 1024 || 0,