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