Sha256: d2b908ca5c12fc36e3fdb08fdd4ccd0324bb57eaf15aa13f782a51144e79eaa0
Contents?: true
Size: 564 Bytes
Versions: 4
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Facts module Windows module Memory module System class AvailableBytes FACT_NAME = 'memory.system.available_bytes' ALIASES = 'memoryfree_mb' def call_the_resolver fact_value = Facter::Resolvers::Memory.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
4 entries across 4 versions & 1 rubygems