From 1250dd57ad873f26dac2de9cfeee70975ea67b49 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 23 Dec 2020 09:12:33 +0100 Subject: [PATCH] fix mssql unlimited --- database/mssql/mode/databasessize.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/database/mssql/mode/databasessize.pm b/database/mssql/mode/databasessize.pm index 85efada2e..e803d4b70 100644 --- a/database/mssql/mode/databasessize.pm +++ b/database/mssql/mode/databasessize.pm @@ -305,9 +305,10 @@ sub manage_selection { my $size = $row->[4]; #max_size = -1 (=unlimited) - if ($row->[7] > 0) { - $size = $row->[7]; + if ($row->[7] == -1) { $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); }