Sha256: 76af0988a72a443b77ea8aed5f231d5a34f7f679d5fa7b47b88f25feb7f9c388
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
# frozen_string_literal: true module Facts module El module Memory module System class TotalBytes FACT_NAME = 'memory.system.total_bytes' ALIASES = 'memorysize_mb' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(: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/el/memory/system/total_bytes.rb |
facter-4.0.11 | lib/facts/el/memory/system/total_bytes.rb |
facter-4.0.10.pre | lib/facts/el/memory/system/total_bytes.rb |