@@ -16,7 +16,7 @@ class Network < Worker
|
||||
hosts = @my_config['hosts']
|
||||
|
||||
net_fail = 0
|
||||
Open3.popen2("fping", *hosts) {|i,o,t|
|
||||
Open3.popen2("fping", *hosts) do |i,o,t|
|
||||
net_ok = o.each_line.count
|
||||
|
||||
if net_ok == hosts.count
|
||||
@@ -31,7 +31,7 @@ class Network < Worker
|
||||
end
|
||||
|
||||
@rstr = "%{F#{fg_colour}}#{status}%{F-}"
|
||||
}
|
||||
end
|
||||
|
||||
return @rstr
|
||||
end
|
||||
|
Reference in New Issue
Block a user