lib/celluloid/cpu_counter.rb in celluloid-0.16.0.pre3 vs lib/celluloid/cpu_counter.rb in celluloid-0.16.0
- old
+ new
@@ -25,9 +25,10 @@
end
def from_sysctl
result = `sysctl -n hw.ncpu`
result if $?.success?
+ rescue Errno::ENOENT
end
end
end
end