Sha256: 260e27cf82837f752e6d17a33010884f278b842c0e10749ca1528c7c010991f6
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true module Facts module Sles module Memory module Swap class Total FACT_NAME = 'memory.swap.total' ALIASES = 'swapsize' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:swap_total) fact_value = Facter::FactsUtils::UnitConverter.bytes_to_human_readable(fact_value) [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.20 | lib/facts/sles/memory/swap/total.rb |
facter-4.0.19 | lib/facts/sles/memory/swap/total.rb |