This could be converted to two facts, like so:

```ruby
Facter.add(:processorcount) do
  has_weight 10
  setcode do
    Facter.value(:activeprocessorcount)
  end
end

Facter.add(:processorcount) do
  has_weight 1
  setcode do
    Facter.value(:totalprocessorcount)
  end
end
```