Skip to content

Commit

Permalink
Merge pull request #106 from vincentkoeckerling/fix-swap-size-conversion
Browse files Browse the repository at this point in the history
Fix wrong conversion from MB and GB of swap size
  • Loading branch information
rubys authored Jun 12, 2024
2 parents bb96993 + 33d9e28 commit 5b91ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/dockerfile_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1394,10 +1394,10 @@ def fly_make_toml
"kb" => 1000,
"mib" => 1048576,
"m" => 1048576,
"mb" => 100000,
"mb" => 1000000,
"gib" => 1073741824,
"g" => 1073741824,
"gb" => 100000000,
"gb" => 1000000000,
}

pattern = Regexp.new("^(\\d+)(#{suffixes.keys.join('|')})?$", "i")
Expand Down

0 comments on commit 5b91ea9

Please sign in to comment.