Sha256: e3ca32555dacf1b64a776b32fd3a26b61c371066ffcb08b330a95c9bae440dcd
Contents?: true
Size: 542 Bytes
Versions: 9
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module Facts module Debian module Memory module Swap class TotalBytes FACT_NAME = 'memory.swap.total_bytes' ALIASES = 'swapsize_mb' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:swap_total) [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
9 entries across 9 versions & 1 rubygems