Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Fix storage calculation

BRAVO68WEB19ed765a82fd
diff --git a/src/components/Widgets/GlDiskSpace.vue b/src/components/Widgets/GlDiskSpace.vue
index c724f840..dcd01fd1 100644
--- a/src/components/Widgets/GlDiskSpace.vue
+++ b/src/components/Widgets/GlDiskSpace.vue
@@ -8,7 +8,7 @@
]" />
<p class="info">
<b>{{ $t('widgets.glances.disk-space-free') }}</b>:
- {{ disk.used | formatSize }} out of {{ disk.size | formatSize }}
+ {{ disk.size - disk.used | formatSize }} out of {{ disk.size | formatSize }}
</p>
<p class="info"><b>{{ $t('widgets.glances.disk-mount-point') }}</b>: {{ disk.mnt_point }}</p>
<p class="info"><b>{{ $t('widgets.glances.disk-file-system') }}</b>: {{ disk.fs_type }}</p>