mirror of
https://github.com/librenms/librenms.git
synced 2024-09-24 03:48:54 +00:00
Additional fix for sorting by total used storage column
This commit is contained in:
parent
44f3428fad
commit
a2c8669bc0
@ -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
|
||||
|
@ -5,8 +5,8 @@
|
||||
<th data-column-id="hostname">Device</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="storage_size" data-searchable="false">Usage</th>
|
||||
<th data-column-id="storage_perc" data-searchable="false">Used</th>
|
||||
<th data-column-id="storage_used" data-searchable="false">Used</th>
|
||||
<th data-column-id="storage_perc" data-searchable="false">Usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user