Sha256: db12ef0168d1d90b225cdf125ca62fd800c993256ee652761f3e3cdce1f02ed7
Contents?: true
Size: 545 Bytes
Versions: 6
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true module Facts module El module Memory module Swap class AvailableBytes FACT_NAME = 'memory.swap.available_bytes' ALIASES = 'swapfree_mb' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:swap_free) [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, Facter::FactsUtils::BytesConverter.to_mb(fact_value), :legacy)] end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems