system_uptime.rb

Path: lib/facter/system_uptime.rb
Last Update: Sat Feb 23 07:17:42 +0000 2019

Fact: system_uptime

Purpose:

  Return the system uptime in a hash in the forms of
  seconds, hours, days and a general, human
  readable uptime.

  This fact is structured. These values are returned as a group of key-value pairs.

Resolution:

  Does basic math on the get_uptime_seconds utility
  to calculate seconds, hours and days.

Caveats:

Required files

facter/util/uptime  

[Validate]