Fix sysinfo compatibility issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-30 22:04:13 +01:00
parent 9b14d62830
commit 5917068add
2 changed files with 7 additions and 15 deletions

View File

@ -134,13 +134,13 @@ export function SysInfoRouteInner(p: {
data: [
{
id: 1,
value: 100 - p.info.system.global_cpu_info.cpu_usage,
value: 100 - p.info.system.global_cpu_usage,
label: "Free",
},
{
id: 2,
value: p.info.system.global_cpu_info.cpu_usage,
value: p.info.system.global_cpu_usage,
label: "Used",
},
],
@ -180,18 +180,18 @@ export function SysInfoRouteInner(p: {
label="CPU info"
icon={<Icon size={"1rem"} path={mdiMemory} />}
entries={[
{ label: "Brand", value: p.info.system.global_cpu_info.brand },
{ label: "Brand", value: p.info.system.cpus[0].brand },
{
label: "Vendor ID",
value: p.info.system.global_cpu_info.vendor_id,
value: p.info.system.cpus[0].vendor_id,
},
{
label: "CPU usage",
value: p.info.system.global_cpu_info.cpu_usage,
value: p.info.system.cpus[0].cpu_usage,
},
{
label: "Name",
value: p.info.system.global_cpu_info.name,
value: p.info.system.cpus[0].name,
},
{
label: "CPU model",