mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 06:51:56 +00:00
avoid warning about undefined value
This commit is contained in:
parent
3648a28c27
commit
e659819599
@ -591,7 +591,7 @@ sub parse_res_bar_limit {
|
|||||||
|
|
||||||
if ($text =~ m/^(\d+)([TGMKP])?$/i) {
|
if ($text =~ m/^(\d+)([TGMKP])?$/i) {
|
||||||
my $val = $1;
|
my $val = $1;
|
||||||
my $mult = lc($2);
|
my $mult = $2 ? lc($2) : '';
|
||||||
if ($mult eq 'k') {
|
if ($mult eq 'k') {
|
||||||
$val = $val * 1024;
|
$val = $val * 1024;
|
||||||
} elsif ($mult eq 'm') {
|
} elsif ($mult eq 'm') {
|
||||||
|
Loading…
Reference in New Issue
Block a user