agent binary - show correct cores in lxc

This commit is contained in:
Henry Dollman
2024-09-26 15:00:48 -04:00
parent 8621a45383
commit e88e2bf3dc
4 changed files with 13 additions and 4 deletions

View File

@@ -220,7 +220,11 @@ export default function SystemDetail({ name }: { name: string }) {
},
{ value: uptime, Icon: ClockArrowUp, label: 'Uptime' },
{ value: system.info.k, Icon: TuxIcon, label: 'Kernel' },
{ value: `${system.info.m} (${system.info.c}c/${system.info.t}t)`, Icon: CpuIcon },
{
value: `${system.info.m} (${system.info.c}c${system.info.t ? `/${system.info.t}t` : ''})`,
Icon: CpuIcon,
hide: !system.info.m,
},
] as {
value: string | number | undefined
label?: string

View File

@@ -17,7 +17,7 @@ export interface SystemInfo {
/** cpu percent */
cpu: number
/** cpu threads */
t: number
t?: number
/** cpu cores */
c: number
/** cpu model */