]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/cpu.rb
Switch web site to readonly against karm
[chef.git] / cookbooks / chef / libraries / cpu.rb
index a7992a4ca374bcb6e65d21220697ef5deab8d8de..1e2d8447f413ef8269d25b952b603d032e0984ec 100644 (file)
@@ -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