Issue #2066 has been updated by Chris Couples.

Ruth Linehan wrote:
> Made the decision to make units MB, since this is the smallest reasonable 
> unit to be useful to work from.

Given that many system configuration files specify values in KB, rather than MB 
(I'm thinking of sysctls and /etc/security/limits.conf, off the top of my 
head), maybe that's a better default than MB(?)
----------------------------------------
Feature #2066: Make units optional
https://projects.puppetlabs.com/issues/2066#change-81614

Author: Sam Quigley
Status: Merged - Pending Release
Priority: Normal
Assignee: Ruth Linehan
Category: library
Target version: 2.0.0
Keywords: intern
Branch: https://github.com/puppetlabs/facter/pull/237
Affected Facter version: 


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].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to