Permalink
Browse files

fix reply time comparison

  • Loading branch information...
1 parent 7590aae commit 22306bc1c0077ac64974d640a5594a68f6ab4cdb @rtanglao committed May 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 alltopicsCreatedOrUpdated.rb
@@ -33,7 +33,7 @@
created_at = Time.parse(r["created_at"])
$stderr.printf("CHECKING topic id:%d, reply id:%d which was last active at:%s\n",t["id"], r["id"], created_at.to_s)
time_compare_start = created_at <=> metrics_start
- time_compare_stop = metrics_stop <=> created_at
+ time_compare_stop = created_at <=> metrics_stop
if time_compare_start >= 0 && time_compare_stop <= 0
$stderr.printf("REPLY id:%d IN TIME WINDOW topic id:%d\n", r["id"],t["id"])
topics_created_or_updated += 1

0 comments on commit 22306bc

Please sign in to comment.