Sha256: 0b71e27743c0518f53c10c46bb3caf63a29047cb3a99f989e2360bd2ecd06d73

Contents?: true

Size: 209 Bytes

Versions: 6

Compression:

Stored size: 209 Bytes

Contents

Facter.add("physicalprocessorcount") do
    confine :kernel => :linux

    setcode do
        ppcount = Facter::Util::Resolution.exec('grep "physical id" /proc/cpuinfo|cut -d: -f 2|sort -u|wc -l')
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facter-1.5.9 lib/facter/physicalprocessorcount.rb
facter-1.5.8 lib/facter/physicalprocessorcount.rb
facter-1.5.7 lib/facter/physicalprocessorcount.rb
facter-1.5.6 lib/facter/physicalprocessorcount.rb
facter-1.5.4 lib/facter/physicalprocessorcount.rb
facter-1.5.5 lib/facter/physicalprocessorcount.rb