From 8441d844d104900f987f874dbddb46aa2503ddda Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 30 Mar 2021 14:23:28 +0200 Subject: Add disk stats to the dashboard Add the following disk stats to the dashboard: * Disk size: shows the amount of total disk size in Gibibytes. * used: shows the amount of used disk size in Gibibytes. * available: shows the amount of free disk size in Gibibytes. * use(%): shows the amount of used disk size in percentage. --- ogcp/templates/dashboard.html | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'ogcp/templates') diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index 518ae20..0f022c3 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -11,6 +11,39 @@
+
+ Disk stats +
+
+
    +
  • + Disk size +
  • +
  • + used +
  • +
  • + available +
  • +
  • + use(%) +
  • +
+
    +
  • + {{ disk['total'] // 2**30 }} Gbytes +
  • +
  • + {{ (disk['total'] - disk['free']) // 2**30 }} Gbytes +
  • +
  • + {{ disk['free'] // 2**30 }} Gbytes +
  • +
  • + {{ (((disk['total'] - disk['free']) / disk['total']) * 100)|int }}% +
  • +
+
Number of images
-- cgit v1.2.3-18-g5258