mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed used column sorting
This commit is contained in:
@ -68,7 +68,7 @@ foreach (dbFetchRows($sql,$param) as $drive) {
|
|||||||
'storage_descr' => $drive['storage_descr'],
|
'storage_descr' => $drive['storage_descr'],
|
||||||
'graph' => $mini_graph,
|
'graph' => $mini_graph,
|
||||||
'storage_size' => $bar_link,
|
'storage_size' => $bar_link,
|
||||||
'storage_used' => $perc . "%");
|
'storage_perc' => $perc . "%");
|
||||||
if ($_POST['view'] == "graphs") {
|
if ($_POST['view'] == "graphs") {
|
||||||
$graph_array['height'] = "100";
|
$graph_array['height'] = "100";
|
||||||
$graph_array['width'] = "216";
|
$graph_array['width'] = "216";
|
||||||
@ -83,10 +83,10 @@ foreach (dbFetchRows($sql,$param) as $drive) {
|
|||||||
'storage_descr' => $graph_data[1],
|
'storage_descr' => $graph_data[1],
|
||||||
'graph' => $graph_data[2],
|
'graph' => $graph_data[2],
|
||||||
'storage_size' => $graph_data[3],
|
'storage_size' => $graph_data[3],
|
||||||
'storage_used' => '');
|
'storage_perc' => '');
|
||||||
|
|
||||||
} # endif graphs
|
} # endif graphs
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$total);
|
$output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$total);
|
||||||
echo _json_encode($output);
|
echo _json_encode($output);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<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_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>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
@ -35,4 +35,4 @@
|
|||||||
templates: {
|
templates: {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user