Update redis.rb

@piavlo -
"actually this line
@congestion_check_time = Time.now.to_i
should come after the while loop and not before
mind adding this change to this PR?"