Commit cef494d5 authored by Leigh Stoller's avatar Leigh Stoller

Allow floating point numbers in ConvertToMebi().

parent c2ecb473
#!/usr/bin/perl -wT
#
# Copyright (c) 2012-2016 University of Utah and the Flux Group.
# Copyright (c) 2012-2017 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -586,7 +586,7 @@ sub ConvertToMebi($)
# Default to bytes
my $unit = "B";
if ($size =~ /^(\d+)(\w+)$/) {
if ($size =~ /^([\.\d]+)(\w+)$/) {
$size = $1;
$unit = $2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment