X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1250c867a78cda8c628cceb5a255376479d4a9f6..200f486870c88f3916ede7bcb36b47b374a63901:/cookbooks/chef/libraries/cpu.rb diff --git a/cookbooks/chef/libraries/cpu.rb b/cookbooks/chef/libraries/cpu.rb index a7992a4ca..1e2d8447f 100644 --- a/cookbooks/chef/libraries/cpu.rb +++ b/cookbooks/chef/libraries/cpu.rb @@ -2,7 +2,7 @@ module OpenStreetMap module Mixin module CPU def cpu_cores - [self.dig("cpu", "total").to_i, self.dig("cpu", "cores").to_i, 4].max + [dig("cpu", "total").to_i, dig("cpu", "cores").to_i, 4].max end end end