Skip to content

Commit

Permalink
Fix mb and gb units
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentkoeckerling committed Jun 12, 2024
1 parent bb96993 commit 33d9e28
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 33d9e28

Please sign in to comment.