# | Line 193 | Line 193 | sub include_osver() { | |
---|---|---|
193 | # sub to get system uptime. | |
194 | sub include_uptime() { | |
195 | ||
196 | – | # Need a regexp guru to strip the junk on this line |
196 | my($uptime) = `$uptimebin`; | |
197 | + | $uptime =~ /up ([0-9]+) .*, ([0-9]+:[0-9]+)/; |
198 | + | $uptime = "$1:$2"; |
199 | ||
200 | &print_pair(0, "packet.os.uptime", $uptime); | |
201 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |