display NAS

This commit is contained in:
Tomáš Mládek 2020-11-01 15:00:43 +01:00
parent 054b18b593
commit b904ca4009

View file

@ -198,6 +198,11 @@ class IndexView(TemplateView):
stats.append(
f"<em>DISK:</em> {naturalsize(disk.used)}/{naturalsize(disk.total)} ({disk.percent}% USED)"
)
disk = psutil.disk_usage('/mnt/nas')
stats.append(
f"<em>NAS:</em> {naturalsize(disk.used)}/{naturalsize(disk.total)} ({disk.percent}% USED)"
)
uptime = normalize_seconds(time.time() - psutil.boot_time())