From a2c8669bc00ca1e779d7cd871e59712ff9ce5089 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Mon, 18 May 2015 21:51:00 +1000 Subject: [PATCH] Additional fix for sorting by total used storage column --- html/includes/table/storage.inc.php | 4 ++-- html/pages/health/storage.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html/includes/table/storage.inc.php b/html/includes/table/storage.inc.php index fc5486fc1..4116bb769 100644 --- a/html/includes/table/storage.inc.php +++ b/html/includes/table/storage.inc.php @@ -67,7 +67,7 @@ foreach (dbFetchRows($sql,$param) as $drive) { $response[] = array('hostname' => generate_device_link($drive), 'storage_descr' => $drive['storage_descr'], 'graph' => $mini_graph, - 'storage_size' => $bar_link, + 'storage_used' => $bar_link, 'storage_perc' => $perc . "%"); if ($_POST['view'] == "graphs") { $graph_array['height'] = "100"; @@ -82,7 +82,7 @@ foreach (dbFetchRows($sql,$param) as $drive) { $response[] = array('hostname' => $graph_data[0], 'storage_descr' => $graph_data[1], 'graph' => $graph_data[2], - 'storage_size' => $graph_data[3], + 'storage_used' => $graph_data[3], 'storage_perc' => ''); } # endif graphs diff --git a/html/pages/health/storage.inc.php b/html/pages/health/storage.inc.php index 29d6f7961..8df6deeb4 100644 --- a/html/pages/health/storage.inc.php +++ b/html/pages/health/storage.inc.php @@ -5,8 +5,8 @@ Device Storage - Usage - Used + Used + Usage