summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrmcleod8 <richard.mcleod@gmail.com>2017-10-13 21:18:33 -0400
committerrmcleod8 <richard.mcleod@gmail.com>2017-10-13 21:18:33 -0400
commit2ae5cf46c67135a4ff4febccfdc199e1e90927fc (patch)
tree75757b5e1ccb0f04ac4658fa6b1f66fea8454b03
parentab39254709aa79abac9d29fe5654551ff4e6b23d (diff)
downloadohai-2ae5cf46c67135a4ff4febccfdc199e1e90927fc.tar.gz
Adding comment for the change
Signed-off-by: rmcleod8 <richard.mcleod@gmail.com>
-rw-r--r--lib/ohai/plugins/aix/uptime.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai/plugins/aix/uptime.rb b/lib/ohai/plugins/aix/uptime.rb
index 9b295b9d..85537ba7 100644
--- a/lib/ohai/plugins/aix/uptime.rb
+++ b/lib/ohai/plugins/aix/uptime.rb
@@ -46,6 +46,7 @@ Ohai.plugin(:Uptime) do
end
elapsed_seconds = ((d.to_i * 86400) + (h.to_i * 3600) + (m.to_i * 60) + s.to_i)
+ # uptime seconds below will return the elapsed time since boot
uptime_seconds elapsed_seconds
uptime seconds_to_human(elapsed_seconds)
end