feat: add boot time display in ServerDetailOverview and localization … (#35)

* feat: add boot time display in ServerDetailOverview and localization support

* chore: auto-fix linting and formatting issues
This commit is contained in:
仓鼠 authored and GitHub committed 2025-03-12 09:25:42 +08:00
1 parent 1a38ce8c77
commit 7ffef91d2d
5 files changed
+16 -3

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ export function formatNezhaInfo(now: number, serverInfo: NezhaServer) {
swap_total: serverInfo.host.swap_total || 0,
disk_total: serverInfo.host.disk_total || 0,
boot_time: serverInfo.host.boot_time || 0,
boot_time_string: serverInfo.host.boot_time ? dayjs(serverInfo.host.boot_time * 1000).format("YYYY-MM-DD HH:mm:ss") : "",
platform_version: serverInfo.host.platform_version || "",
cpu_info: serverInfo.host.cpu || [],
gpu_info: serverInfo.host.gpu || [],