0 second post wait?


(Logan Devine) #1

For post waits like the “wait 0 secs before posting again” it should say “wait less then a second before posting again. (Precise value 1/15 or so)”


(Jeff Atwood) #2

Can you screenshot this? Where exactly are you seeing it?


(Logan Devine) #3

From an example forum:


(Jeff Atwood) #4

Sure, maybe @neil can double check that code path, we have standard time display handlers.


(Neil Lalonde) #6

Ok, it’s here:

if @available_in < 1.minute.to_i
        time_left = I18n.t("rate_limiter.seconds", count: @available_in)

Is “wait less then a second” any better than “wait 0 seconds” though? It’s still silly… Maybe “wait a few seconds”?


(Mittineague) #7

Why not just ceil it to 1 second? Seems like only the Flash would be able to detect the inaccuracy.


(Colin Marshall) #8

Or please try again now?


(Mittineague) #9

Yes, for my response time that would work. Do you feel there is any chance a retry might happen before the full fraction of a second has elapsed?


(Jeff Atwood) #10

Whatever is simplest and gets this off our plate is fine by me. :wink:

I do like @cmwebdev’s suggestion though!


(Neil Lalonde) #11

I went with “a few seconds” instead of @cmwebdev’s idea because of how the translation strings are created. Invalidating all those translations isn’t worth it in this case imo.


(Jeff Atwood) #12