summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/disk_inspector.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-26 10:34:28 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-26 13:21:02 +0200
commitc1d9018e2174a3144c6babba86b4959dd77448d2 (patch)
treecb85898b3f1d67e7ff870781d3b94aae18784fd9 /ogcp/templates/disk_inspector.html
parent77a60b717af0db3deed845745c39a3fd1e52e6e2 (diff)
templates: show real sizes in cache inspector
Use real free and available cache in cache_inspector.html
Diffstat (limited to 'ogcp/templates/disk_inspector.html')
-rw-r--r--ogcp/templates/disk_inspector.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/templates/disk_inspector.html b/ogcp/templates/disk_inspector.html
index f3f190a..2f1b3dc 100644
--- a/ogcp/templates/disk_inspector.html
+++ b/ogcp/templates/disk_inspector.html
@@ -180,7 +180,12 @@
let freeSpace = diskSize;
let partNum = 1;
$('#partitionsTable tr').each(function() {
+ {% if readonly_disk_inspector is defined %}
+ let partitionSize = parseInt($(this).find('td').eq(3).text().trim());
+ {% else %}
let partitionSize = parseInt($(this).find('td').eq(3).find('input').val().trim());
+ {% endif %}
+
if (isNaN(partitionSize)) {
partitionSize = 0;
}