From b904ca4009eb7d15ad90c72380405e3e433b693d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 1 Nov 2020 15:00:43 +0100 Subject: [PATCH] display NAS --- sdbs_infra/dashboard/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdbs_infra/dashboard/views.py b/sdbs_infra/dashboard/views.py index f3eff8c..f23fe53 100644 --- a/sdbs_infra/dashboard/views.py +++ b/sdbs_infra/dashboard/views.py @@ -198,6 +198,11 @@ class IndexView(TemplateView): stats.append( f"DISK: {naturalsize(disk.used)}/{naturalsize(disk.total)} ({disk.percent}% USED)" ) + + disk = psutil.disk_usage('/mnt/nas') + stats.append( + f"NAS: {naturalsize(disk.used)}/{naturalsize(disk.total)} ({disk.percent}% USED)" + ) uptime = normalize_seconds(time.time() - psutil.boot_time())