Issue #2066 has been updated by Dominic Cleal.
I've posted a patch for this to puppet-dev, which adds _mb and _b versions of the memorysize, memoryfree, swapsize and swapfree facts. The units we choose to display can easily be changed in lib/facter/util/memory.rb, but I figure these two should allow people enough flexibility without creating excessive variations. http://groups.google.com/group/puppet-dev/browse_thread/thread/d8bf869d97148590 https://github.com/domcleal/facter/tree/tickets/master/2066 Tested them from Puppet and it works well, making it much easier to calculate memory limits etc. ---------------------------------------- Bug #2066: Make units optional https://projects.puppetlabs.com/issues/2066 Author: Sam Quigley Status: Accepted Priority: Normal Assignee: Category: library Target version: 2.0.0 Keywords: Branch: For memory facts (and maybe other stuff?), Facter currently uses the largest unit it can (kb/mb/gb/tb), and only prints two decimal places of accuracy. On some of my systems, this means that the facts reported by facter are slightly wrong -- and it also introduces a bit of complexity into any program that wants to make use of these facts, since they have to translate back into machine-readable units... It'd be nice if there were an option to make facter report bytes instead... -sq -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
