mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09:28 +08:00
show swap chart only if swap is in use
This commit is contained in:
@@ -374,7 +374,7 @@ export default function SystemDetail({ name }: { name: string }) {
|
|||||||
</ChartCard>
|
</ChartCard>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{(systemStats.at(-1)?.stats.s ?? 0) > 0 && (
|
{(systemStats.at(-1)?.stats.su ?? 0) > 0 && (
|
||||||
<ChartCard grid={grid} title="Swap Usage" description="Swap space used by the system">
|
<ChartCard grid={grid} title="Swap Usage" description="Swap space used by the system">
|
||||||
<SwapChart ticks={ticks} systemData={systemStats} />
|
<SwapChart ticks={ticks} systemData={systemStats} />
|
||||||
</ChartCard>
|
</ChartCard>
|
||||||
|
Reference in New Issue
Block a user