Sha256: fc9c3543d2a4880fbe8d6702b9792dfef488342d44239d71a4a9294cbc16ce0b
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true module Facts module Sles module Memory module Swap class Used FACT_NAME = 'memory.swap.used' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:swap_used_bytes) fact_value = Facter::FactsUtils::UnitConverter.bytes_to_human_readable(fact_value) Facter::ResolvedFact.new(FACT_NAME, fact_value) 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/used.rb |
facter-4.0.19 | lib/facts/sles/memory/swap/used.rb |