# File lib/sysinfo.rb, line 120 120: def find_uptime 121: hours = 0 122: begin 123: seconds = execute_platform_specific("find_uptime") || 0 124: hours = seconds / 3600 # seconds to hours 125: rescue => ex 126: #puts ex.message # TODO: implement debug? 127: end 128: hours 129: end