Sha256: 9a63c0e1fc60fd23b810aab7a4b6d890bc8afecbb5edf6e77372ff7c7a3da4d3
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Facts module Debian 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/debian/memory/swap/used.rb |
facter-4.0.19 | lib/facts/debian/memory/swap/used.rb |