mirror of https://github.com/schoebel/mars
marsadm: ignore tails in comma-separated numeric lists
This commit is contained in:
parent
345c92497a
commit
c50c5448c8
|
@ -7743,6 +7743,8 @@ sub progress_bar {
|
|||
sub make_numeric {
|
||||
my $number = shift;
|
||||
return 0 if (!defined($number) || $number eq "");
|
||||
# skip followin parts of comma-separated lists
|
||||
$number =~ s/,.*//;
|
||||
return $number;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue