1
0
mirror of https://github.com/schoebel/mars synced 2025-03-30 15:26:39 +00:00

marsadm: fix wrong minimum computation in resize

This commit is contained in:
Thomas Schoebel-Theuer 2012-08-16 14:34:49 +02:00 committed by Thomas Schoebel-Theuer
parent 380a38a903
commit a9e7affde5

View File

@ -756,7 +756,7 @@ sub resize_res {
my $min_size = 0; my $min_size = 0;
foreach my $actsize (@actsizes) { foreach my $actsize (@actsizes) {
my $this_size = readlink($actsize) or die "cannot read symlink '$actsize'\n"; my $this_size = readlink($actsize) or die "cannot read symlink '$actsize'\n";
if (!$min_size || $min_size < $this_size) { if (!$min_size || $this_size < $min_size) {
$min_size = $this_size; $min_size = $this_size;
} }
} }