fix mssql unlimited
This commit is contained in:
parent
add3f87bc1
commit
1250dd57ad
|
@ -305,9 +305,10 @@ sub manage_selection {
|
||||||
|
|
||||||
my $size = $row->[4];
|
my $size = $row->[4];
|
||||||
#max_size = -1 (=unlimited)
|
#max_size = -1 (=unlimited)
|
||||||
if ($row->[7] > 0) {
|
if ($row->[7] == -1) {
|
||||||
$size = $row->[7];
|
|
||||||
$self->{databases}->{ $row->[0] }->{$row->[3] . 'files'}->{limit} = 'unlimited';
|
$self->{databases}->{ $row->[0] }->{$row->[3] . 'files'}->{limit} = 'unlimited';
|
||||||
|
} elsif ($row->[7] > 0) {
|
||||||
|
$size = $row->[7];
|
||||||
}
|
}
|
||||||
$self->{databases}->{ $row->[0] }->{$row->[3] . 'files'}->{total_space} += ($size * 8 * 1024);
|
$self->{databases}->{ $row->[0] }->{$row->[3] . 'files'}->{total_space} += ($size * 8 * 1024);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue