From e659819599cbf82892cea514fb025b2be3169e2d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 27 Mar 2013 06:29:41 +0100 Subject: [PATCH] avoid warning about undefined value --- PVE/OpenVZ.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/OpenVZ.pm b/PVE/OpenVZ.pm index b9188b09..a16d4fc2 100644 --- a/PVE/OpenVZ.pm +++ b/PVE/OpenVZ.pm @@ -591,7 +591,7 @@ sub parse_res_bar_limit { if ($text =~ m/^(\d+)([TGMKP])?$/i) { my $val = $1; - my $mult = lc($2); + my $mult = $2 ? lc($2) : ''; if ($mult eq 'k') { $val = $val * 1024; } elsif ($mult eq 'm') {