Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Remove unused usagePercent variable in Storage.tsx

rcourtmane07daab93f17
diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx
index 0f83a9394c..0d3ec4db40 100644
--- a/frontend-modern/src/components/Storage/Storage.tsx
+++ b/frontend-modern/src/components/Storage/Storage.tsx
@@ -803,8 +803,6 @@ const Storage: Component = () => {
{/* Storage Rows */}
<For each={storages} fallback={<></>}>
{(storage) => {
- const usagePercent =
- storage.total > 0 ? (storage.used / storage.total) * 100 : 0;
const isDisabled = storage.status !== 'available';
const pbsNamesDisplay = createMemo(() => {
const names = storage.pbsNames?.filter(