Additional fix for sorting by total used storage column

This commit is contained in:
Paul Gear
2015-05-18 21:51:00 +10:00
parent 44f3428fad
commit a2c8669bc0
2 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ foreach (dbFetchRows($sql,$param) as $drive) {
$response[] = array('hostname' => generate_device_link($drive), $response[] = array('hostname' => generate_device_link($drive),
'storage_descr' => $drive['storage_descr'], 'storage_descr' => $drive['storage_descr'],
'graph' => $mini_graph, 'graph' => $mini_graph,
'storage_size' => $bar_link, 'storage_used' => $bar_link,
'storage_perc' => $perc . "%"); 'storage_perc' => $perc . "%");
if ($_POST['view'] == "graphs") { if ($_POST['view'] == "graphs") {
$graph_array['height'] = "100"; $graph_array['height'] = "100";
@@ -82,7 +82,7 @@ foreach (dbFetchRows($sql,$param) as $drive) {
$response[] = array('hostname' => $graph_data[0], $response[] = array('hostname' => $graph_data[0],
'storage_descr' => $graph_data[1], 'storage_descr' => $graph_data[1],
'graph' => $graph_data[2], 'graph' => $graph_data[2],
'storage_size' => $graph_data[3], 'storage_used' => $graph_data[3],
'storage_perc' => ''); 'storage_perc' => '');
} # endif graphs } # endif graphs

View File

@@ -5,8 +5,8 @@
<th data-column-id="hostname">Device</th> <th data-column-id="hostname">Device</th>
<th data-column-id="storage_descr">Storage</th> <th data-column-id="storage_descr">Storage</th>
<th data-column-id="graph" data-sortable="false" data-searchable="false"></th> <th data-column-id="graph" data-sortable="false" data-searchable="false"></th>
<th data-column-id="storage_size" data-searchable="false">Usage</th> <th data-column-id="storage_used" data-searchable="false">Used</th>
<th data-column-id="storage_perc" data-searchable="false">Used</th> <th data-column-id="storage_perc" data-searchable="false">Usage</th>
</tr> </tr>
</thead> </thead>
</table> </table>