@@ 11,13 11,15 @@ for line in STDIN
id=cols[0,4].join(",")
ok=cols[7]
o,n,v,*r = ok.split
- @migration[id] = true if ok =~ /MIGRATION/
- if @id[id].nil? or @id[id] < v.to_f and @okfail[id] != "FAIL"
- @okfail[id] = o
- @id[id] = v.to_f
+ if ok !~ /MIGRATION 0/
+ @migration[id] = true if ok =~ /MIGRATION/
+ if @id[id].nil? or @id[id] < v.to_f and @okfail[id] != "FAIL"
+ @okfail[id] = o
+ @id[id] = v.to_f
+ end
+ tf = cols[8].chop == "true"
+ @link[id] = @link[id].nil? ? tf : @link[id] & tf
end
- tf = cols[8].chop == "true"
- @link[id] = @link[id].nil? ? tf : @link[id] & tf
end
puts "ID,Ad ID,Subdomain,Domain1,OK,NRMSD,Links OK"