Sha256: 54c5399372919b853fc31c92d17d5f9a1e53704824b3c407654c44682d3c4bfe
Contents?: true
Size: 565 Bytes
Versions: 26
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Facts module Macosx module Memory module Swap class AvailableBytes FACT_NAME = 'memory.swap.available_bytes' ALIASES = 'swapfree_mb' def call_the_resolver fact_value = Facter::Resolvers::Macosx::SwapMemory.resolve(:available_bytes) [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, Facter::FactsUtils::UnitConverter.bytes_to_mb(fact_value), :legacy)] end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems