Sha256: 03b19493c205893c69f214e6de24bce207afefa5c9caa6865e7bc239b64c1bcd
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true module Facts module Sles 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/sles/memory/system/total_bytes.rb |
facter-4.0.11 | lib/facts/sles/memory/system/total_bytes.rb |
facter-4.0.10.pre | lib/facts/sles/memory/system/total_bytes.rb |