X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1250c867a78cda8c628cceb5a255376479d4a9f6..5fde77fb90280da2c008bb5e8e83f6635b999715:/cookbooks/chef/libraries/cpu.rb?ds=inline 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