lib/ceml/role.rb in ceml-0.6.0 vs lib/ceml/role.rb in ceml-0.6.1

- old
+ new

@@ -26,10 +26,11 @@ c_ll = Geokit::LatLng(candidate[:lat], candidate[:lng]) s_ll = Geokit::LatLng(star[:lat], star[:lng]) return unless c_ll.distance_to(s_ll, :meters) <= c.radius end if c.timewindow - return unless star.ts - candidate.ts <= c.timewindow + # puts "checking timewindow #{c.timewindow} #{candidate[:ts] - star[:ts]}" + return unless candidate[:ts] - star[:ts] <= c.timewindow end return true end end end