mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +08:00
修正 ServerCard 和 ServerCardInline 组件中的 CPU 标签,从 "物理CPU" 更新为 "pCPU"
This commit is contained in:
parent
b6274a2718
commit
03c3a913c6
@ -179,7 +179,7 @@ export default function ServerCard({ now, serverInfo }: { now: number; serverInf
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
{cpu_info[0].includes("Physical") ? "物理CPU: " : "vCPU: "}
|
||||
{cpu_info[0].includes("Physical") ? "pCPU: " : "vCPU: "}
|
||||
{cpu_info[0].match(/(\d+)\s+(?:Physical|Virtual)\s+Core/)?.[1] || "?"}
|
||||
</p>
|
||||
</TooltipTrigger>
|
||||
|
@ -154,7 +154,7 @@ export default function ServerCardInline({ now, serverInfo }: { now: number; ser
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
||||
{cpu_info[0].includes("Physical") ? "物理CPU: " : "vCPU: "}
|
||||
{cpu_info[0].includes("Physical") ? "pCPU: " : "vCPU: "}
|
||||
{cpu_info[0].match(/(\d+)\s+(?:Physical|Virtual)\s+Core/)?.[1] || "?"}
|
||||
</p>
|
||||
</TooltipTrigger>
|
||||
|
Loading…
x
Reference in New Issue
Block a user