Sha256: a374c889840379315418dc731fdb787a86677102b66537f54f8f6df4e4252ea5
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Facts module Macosx module Memory module System class AvailableBytes FACT_NAME = 'memory.system.available_bytes' ALIASES = 'memoryfree_mb' def call_the_resolver fact_value = Facter::Resolvers::Macosx::SystemMemory.resolve(:available_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