Sha256: 7302212de6d15bfcaf96d9bfc915bbdf3f9347e0afe3703c848e93d216f14497
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true module Facts module Macosx module Memory module Swap class TotalBytes FACT_NAME = 'memory.swap.total_bytes' ALIASES = 'swapsize_mb' def call_the_resolver fact_value = Facter::Resolvers::Macosx::SwapMemory.resolve(:total_bytes) [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/macosx/memory/swap/total_bytes.rb |
facter-4.0.11 | lib/facts/macosx/memory/swap/total_bytes.rb |
facter-4.0.10.pre | lib/facts/macosx/memory/swap/total_bytes.rb |