mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
agent binary - show correct cores in lxc
This commit is contained in:
@@ -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
|
||||
|
2
beszel/site/src/types.d.ts
vendored
2
beszel/site/src/types.d.ts
vendored
@@ -17,7 +17,7 @@ export interface SystemInfo {
|
||||
/** cpu percent */
|
||||
cpu: number
|
||||
/** cpu threads */
|
||||
t: number
|
||||
t?: number
|
||||
/** cpu cores */
|
||||
c: number
|
||||
/** cpu model */
|
||||
|
Reference in New Issue
Block a user