diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-08-07 04:47:30 -0500 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-09-23 16:02:49 -0700 |
commit | c146ce6e00a618866f8f41013c9c630a4c360181 (patch) | |
tree | f8bc79233851b011147dff0c190a0ccf971a71be | |
parent | 01b2fd5c4aab030ddd0f0d654e185148f6392ad6 (diff) | |
download | ohai-c146ce6e00a618866f8f41013c9c630a4c360181.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 |