diff --git a/src/widgets/pfsense/component.jsx b/src/widgets/pfsense/component.jsx index 54ae1bfdc..8e02c590f 100644 --- a/src/widgets/pfsense/component.jsx +++ b/src/widgets/pfsense/component.jsx @@ -38,6 +38,12 @@ export default function Component({ service }) { } const wan = interfaceData.data.filter((l) => l.hwif === widget.wan)[0]; + let memUsage = systemData?.data.mem_usage; + let diskUsage = systemData.data.disk_usage; + if (version === 1) { + memUsage *= 100; + diskUsage *= 100; + } return ( @@ -45,10 +51,7 @@ export default function Component({ service }) { label="pfsense.load" value={version === 1 ? systemData.data.load_avg[0] : systemData.data.cpu_load_avg[0]} /> - + {showWanIP && } - {showDiskUsage && ( - - )} + {showDiskUsage && } ); }