Class: Facter::Util::Facts::UptimeParser

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/util/facts/uptime_parser.rb

Constant Summary collapse

SECS_IN_A_DAY =
86_400
SECS_IN_AN_HOUR =
3_600
SECS_IN_A_MINUTE =
60

Class Method Summary collapse

Class Method Details

.uptime_seconds_unixObject



16
17
18
# File 'lib/facter/util/facts/uptime_parser.rb', line 16

def uptime_seconds_unix
  uptime_proc_uptime || uptime_sysctl || uptime_executable
end