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