Skip to content
Snippets Groups Projects
Commit 81b45ab2 authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

2018-11-06: FG; Fixed bug when OSD size is zero.

parent be56bd15
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,10 @@ foreach my $_lineS (@_dataSize)
my $sizeLastChar = lc(chop($size));
if ($sizeLastChar eq "t") {
$size = $size * 1000.;
} elsif ($sizeLastChar eq "g") {
$size += 0.;
} elsif ($size eq "") {
$size = 0.;
}
$size += 0.;
......
......@@ -201,6 +201,10 @@ foreach my $_line (@_data)
my $sizeLastChar = lc(chop($size));
if ($sizeLastChar eq "t") {
$size = $size * 1000.;
} elsif ($sizeLastChar eq "g") {
$size += 0.;
} elsif ($size eq "") {
$size = 0.;
}
$size += 0.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment