Sha256: fd36719a7dab04d68ee23c06d256f8b5c415f10e2ce771e9ff49bcfb66460547
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true module Facts module Sles 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, fact_value ? (fact_value / (1024.0 * 1024.0)).round(2) : nil, :legacy)] end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.12 | lib/facts/sles/memory/swap/total_bytes.rb |
facter-4.0.11 | lib/facts/sles/memory/swap/total_bytes.rb |
facter-4.0.10.pre | lib/facts/sles/memory/swap/total_bytes.rb |