diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-08-07 04:47:30 -0500 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-08-19 11:52:45 -0700 |
commit | f608c9c65050e04839d4ee30f9b817c8d1f0e5ee (patch) | |
tree | c557a0b5ae37a8c14b85e3b142c0a8f9f4ab5527 | |
parent | 57b509a4f9ffb6a8375d5c771774c472113f2819 (diff) | |
download | ohai-f608c9c65050e04839d4ee30f9b817c8d1f0e5ee.tar.gz |
fix aix uptime.
-rw-r--r-- | lib/ohai/plugins/aix/uptime.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/aix/uptime.rb b/lib/ohai/plugins/aix/uptime.rb index 68e99b79..b15bffd5 100644 --- a/lib/ohai/plugins/aix/uptime.rb +++ b/lib/ohai/plugins/aix/uptime.rb @@ -27,8 +27,8 @@ popen4('who -b') do |pid, stdin, stdout, stderr| stdout.each do |line| if line =~ /.* boot (.+)/ uptime_seconds Time.now.to_i - DateTime.parse($1).strftime('%s').to_i - uptime self._seconds_to_human(uptime_seconds) - break + uptime seconds_to_human(uptime_seconds) + break end end end |