summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaustubh-d <kaustubh@clogeny.com>2013-08-07 04:47:30 -0500
committeradamedx <adamed@opscode.com>2013-09-23 16:02:49 -0700
commitc146ce6e00a618866f8f41013c9c630a4c360181 (patch)
treef8bc79233851b011147dff0c190a0ccf971a71be
parent01b2fd5c4aab030ddd0f0d654e185148f6392ad6 (diff)
downloadohai-c146ce6e00a618866f8f41013c9c630a4c360181.tar.gz
fix aix uptime.
-rw-r--r--lib/ohai/plugins/aix/uptime.rb4
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