Codebase list facter / 4dcd012
Fixed generic uptime fact James Turnbull 15 years ago
2 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11 Fixed #1926 - IPAddr to_s issue
22
33 Fixed Ubuntu operatingsystem identification
4
5 Fixed generic uptime fact
46
57 1.5.3:
68 Added network fact
55 time = Facter::Util::Resolution.exec('uptime')
66 if time =~ /up\s*(\d+\s\w+)/
77 $1
8 elsif time =~ /up\s*(\d+:\d+)/
9 $1 + " hours"
810 else
911 "unknown"
1012 end