Sha256: 718e1b3eaeec1fe9f4729c71da98285896a6e4ca262283463503fbb99988a5c6

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

module Facter
  module El
    class MemorySwapTotal
      FACT_NAME = 'memory.swap.total'

      def call_the_resolver
        fact_value = Resolvers::Linux::Memory.resolve(:swap_total)
        fact_value = BytesToHumanReadable.convert(fact_value)
        ResolvedFact.new(FACT_NAME, fact_value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/el/memory/swap/total.rb
facter-4.0.7.pre lib/facts/el/memory/swap/total.rb