diff options
| author | William Van Hevelingen <wvan13@gmail.com> | 2010-08-18 15:40:24 -0700 |
|---|---|---|
| committer | William Van Hevelingen <wvan13@gmail.com> | 2010-08-18 15:40:24 -0700 |
| commit | b6c0a6b717e85cae813275b9feaeb409b8701c5b (patch) | |
| tree | 08e1d2c3ccbaed4fd7a3c9ea7c5a8cadc62851a0 /lib/facter/util | |
| parent | 51bcebe38cab6088c901f1006339bbe40a36d161 (diff) | |
| download | facter-b6c0a6b717e85cae813275b9feaeb409b8701c5b.tar.gz facter-b6c0a6b717e85cae813275b9feaeb409b8701c5b.tar.xz facter-b6c0a6b717e85cae813275b9feaeb409b8701c5b.zip | |
Fix for bug #4569
* getTickCount.call() is not an epoch time value so compute_uptime
is not necessary
Signed-off-by: William Van Hevelingen <wvan13@gmail.com>
Diffstat (limited to 'lib/facter/util')
| -rw-r--r-- | lib/facter/util/uptime.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/util/uptime.rb b/lib/facter/util/uptime.rb index 353ebf5..b62d7e9 100644 --- a/lib/facter/util/uptime.rb +++ b/lib/facter/util/uptime.rb @@ -10,7 +10,7 @@ module Facter::Util::Uptime def self.get_uptime_seconds_win require 'Win32API' getTickCount = Win32API.new("kernel32", "GetTickCount", nil, 'L') - compute_uptime(Time.at(getTickCount.call() / 1000.0)) + (getTickCount.call() / 1000.0).to_i end private |
