Sha256: f413983a09391b95f038028864ba9f37ff7d5f89571754e4a6cbd3ad11c37aec
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module Facts module El module Memory module System class AvailableBytes FACT_NAME = 'memory.system.available_bytes' ALIASES = 'memoryfree_mb' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:memfree) [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/el/memory/system/available_bytes.rb |
facter-4.0.11 | lib/facts/el/memory/system/available_bytes.rb |
facter-4.0.10.pre | lib/facts/el/memory/system/available_bytes.rb |