getting cpu info w/o parsing /var/run/dmesg.boot

Hleb Valoshka 375gnu at gmail.com
Fri Oct 9 08:47:03 PDT 2015


On 10/9/15, Zachary Crownover <zachary.crownover at gmail.com> wrote:
> You could also look at what facter does, from puppet. It's also Ruby and
> being rewritten in C++.

Not too much info:

    class BSD < Base
      def get_processor_count
        Facter::Util::POSIX.sysctl("hw.ncpu").to_i
      end
    end



More information about the Users mailing list