Commit 2b332c7c authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(frontend): volume size for swap must be integer too

issue #1154
parent 2e030d24
......@@ -1487,7 +1487,7 @@ sub req_new_domain {
my $name = $c->param('name');
my $swap = ($c->param('swap') or 0);
my $vm = ( $c->param('backend') or 'KVM');
$swap *= 1024*1024*1024;
$swap = int($swap * 1024*1024*1024);
my %args = (
name => $name
......
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