Skip to content

Commit

Permalink
Merge pull request #15 from grunt009/master
Browse files Browse the repository at this point in the history
Fixed device sorting in status.cgi, my testing so far shows it doesn't break anything!
  • Loading branch information
jonmatifa authored Aug 17, 2017
2 parents 768d44f + 390a3c4 commit e90ebfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ my %status = zpool_status($in{'pool'});
#print "Config:";
print ui_columns_start([ "Virtual Device", "State", "Read", "Write", "Cksum" ]);
#@devs = ( values %status{}{devs} );
foreach $key (sort keys %status)
foreach $key (sort {$a <=> $b} (keys %status))
{
if (($status{$key}{parent} =~ /pool/) && ($key != 0)) {
print ui_columns_row(["<a href='config-vdev.cgi?pool=".$status{0}{pool}.'&dev='.$key."'>".$status{$key}{name}."</a>", $status{$key}{state}, $status{$key}{read}, $status{$key}{write}, $status{$key}{cksum}]);
Expand Down

0 comments on commit e90ebfc

Please sign in to comment.