X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1250c867a78cda8c628cceb5a255376479d4a9f6..d18cd92a98384aebf371376383a4408485f12374:/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