mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sort smart app disks by label (#15686)
* sort smart app disks by label * . * .
This commit is contained in:
@@ -14,6 +14,8 @@ if (isset($vars['disk'])) {
|
||||
$disks = array_keys($app->data['disks']);
|
||||
}
|
||||
|
||||
sort($disks);
|
||||
|
||||
$smart_enhancements = ['id9', 'maxtemp', 'id232'];
|
||||
|
||||
$int = 0;
|
||||
|
@@ -13,6 +13,8 @@ $drives = [];
|
||||
|
||||
$app_data = $app->data;
|
||||
|
||||
array_multisort(array_keys($app_data['disks']), SORT_ASC, $app_data['disks']);
|
||||
|
||||
foreach ($app_data['disks'] as $label => $disk_data) {
|
||||
$disk = $label;
|
||||
|
||||
|
Reference in New Issue
Block a user