Sha256: 7f5363795420888fbe1da89912cc33a18bad7206a194bbc753561161b665f73c

Contents?: true

Size: 426 Bytes

Versions: 10

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module Processors
      class Speed
        FACT_NAME = 'processors.speed'

        def call_the_resolver
          fact_value = Facter::Resolvers::Linux::Processors.resolve(:speed)
          speed = Facter::FactsUtils::UnitConverter.hertz_to_human_readable(fact_value)
          Facter::ResolvedFact.new(FACT_NAME, speed)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facter-4.0.46 lib/facter/facts/linux/processors/speed.rb
facter-4.0.44 lib/facter/facts/linux/processors/speed.rb
facter-4.0.43 lib/facter/facts/linux/processors/speed.rb
facter-4.0.42 lib/facter/facts/linux/processors/speed.rb
facter-4.0.41 lib/facter/facts/linux/processors/speed.rb
facter-4.0.40 lib/facter/facts/linux/processors/speed.rb
facter-4.0.39 lib/facter/facts/linux/processors/speed.rb
facter-4.0.38 lib/facter/facts/linux/processors/speed.rb
facter-4.0.37 lib/facter/facts/linux/processors/speed.rb
facter-4.0.36 lib/facter/facts/linux/processors/speed.rb