- {cpu_info[0].includes("Physical") ? "物理CPU: " : "vCPU: "} - {cpu_info[0].match(/(\d+)\s+(?:Physical|Virtual)\s+Core/)?.[1] || "?"} -
-- {t("serverCard.mem")}: {formatBytes(mem_total)} -
- )} - - {disk_total > 0 && ( -- {t("serverCard.stg")}: {formatBytes(disk_total)} -
- )} - - {tcp > 0 && ( -- TCP: {tcp} -
- )} - - {udp > 0 && ( -- UDP: {udp} -
- )} - - {process > 0 && ( -- {t("serverDetailChart.process")}: {process} -
- )} - - {uptime > 0 && ( -- {t("serverCard.uptime")}: {formatUptime(uptime)} -
- )} + {/* 第一行:运行时间、CPU、内存、硬盘 */} ++ {t("serverCard.uptime")}: {formatUptime(uptime, t)} +
+ )} + + {cpu_info && cpu_info.length > 0 && ( ++ {cpu_info[0].includes("Physical") ? "物理CPU: " : "vCPU: "} + {cpu_info[0].match(/(\d+)\s+(?:Physical|Virtual)\s+Core/)?.[1] || "?"} +
++ {t("serverCard.mem")}: {formatBytes(mem_total)} +
+ )} + + {disk_total > 0 && ( ++ {t("serverCard.stg")}: {formatBytes(disk_total)} +
+ )} ++ TCP: {tcp} +
+ )} + + {udp > 0 && ( ++ UDP: {udp} +
+ )} + + {process > 0 && ( ++ {t("serverDetailChart.process")}: {process} +
+ )} +- {cpu_info[0].includes("Physical") ? "物理CPU: " : "vCPU: "} - {cpu_info[0].match(/(\d+)\s+(?:Physical|Virtual)\s+Core/)?.[1] || "?"} -
-- {t("serverCard.mem")}: {formatBytes(mem_total)} -
- )} - - {disk_total > 0 && ( -- {t("serverCard.stg")}: {formatBytes(disk_total)} -
- )} - - {tcp > 0 && ( -- TCP: {tcp} -
- )} - - {udp > 0 && ( -- UDP: {udp} -
- )} - - {process > 0 && ( -- {t("serverDetailChart.process")}: {process} -
- )} + {/* 第一行:运行时间、CPU、内存、硬盘 */} ++ {t("serverCard.uptime")}: {formatUptime(uptime, t)} +
+ )} + + {cpu_info && cpu_info.length > 0 && ( ++ {cpu_info[0].includes("Physical") ? "物理CPU: " : "vCPU: "} + {cpu_info[0].match(/(\d+)\s+(?:Physical|Virtual)\s+Core/)?.[1] || "?"} +
++ {t("serverCard.mem")}: {formatBytes(mem_total)} +
+ )} + + {disk_total > 0 && ( ++ {t("serverCard.stg")}: {formatBytes(disk_total)} +
+ )} ++ TCP: {tcp} +
+ )} + + {udp > 0 && ( ++ UDP: {udp} +
+ )} + + {process > 0 && ( ++ {t("serverDetailChart.process")}: {process} +
+ )} +