Re: [Puppet-dev] [PATCH/facter 1/2] [#2330] Uptime should not make redundant system calls

2010-08-06 Thread Paul Nasrat
On 6 August 2010 00:35, Rein Henrichs r...@puppetlabs.com wrote: From: Rein Henrichs re...@reinh.com Rewrite of uptime facts and supporting utility methods. Works on unix, BSD, windows. No longer makes redundant system calls. +1, tested locally Uses Facter::Util::Uptime utility methods: *

[Puppet-dev] [PATCH/facter 1/2] [#2330] Uptime should not make redundant system calls

2010-08-05 Thread Rein Henrichs
From: Rein Henrichs re...@reinh.com Rewrite of uptime facts and supporting utility methods. Works on unix, BSD, windows. No longer makes redundant system calls. Uses Facter::Util::Uptime utility methods: * Implemented uptime_seconds_unix using /proc/uptime or who -b on unix, sysctl on BSD.