mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-07 22:15:49 +01:00
🐛 Fixing bugs in system info
This commit is contained in:
@@ -51,12 +51,11 @@ export default function SystemInfo(args: any) {
|
||||
const theme = useMantineTheme();
|
||||
const currentLoad = data?.load?.currentLoad ?? 0;
|
||||
|
||||
|
||||
return (
|
||||
<Center>
|
||||
<Group p="sm" direction="column" align="center">
|
||||
<Title order={3}>Current CPU load</Title>
|
||||
<ResponsiveLine
|
||||
{/* <ResponsiveLine
|
||||
isInteractive
|
||||
enableSlices="x"
|
||||
sliceTooltip={({ slice }) => {
|
||||
@@ -108,7 +107,7 @@ export default function SystemInfo(args: any) {
|
||||
// Green
|
||||
theme.colors.green[5],
|
||||
]}
|
||||
/>
|
||||
/> */}
|
||||
<RingProgress
|
||||
size={120}
|
||||
label={<Center>{`${(currentLoad * 100).toFixed(2)}%`}</Center>}
|
||||
|
||||
Reference in New Issue
Block a user