Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bovine3dom
· 6y ago · 0 comments
If fastest poll rate > slowest poll rate, I think you've got them the wrong way around (or is that the joke?).
Comments
[–]
css
6y ago
FASTEST_POLL_RATE is 1000hz, SLOWEST_POLL_RATE is 10hz. Thus, FASTEST_POLL_RATE is a smaller number on a per-second basis.
[–]
bovine3dom
OP
6y ago
Ah, I see - for clarity I'd rename them FASTEST_POLL_RATE -> SHORTEST_POLL_PERIOD or store them in Hz rather than seconds, so everything was 1/ in that little snippet. Thanks for clearing up my confusion :)
[–]
css
6y ago
Yeah that’s a very good call, I will probably rename these. Thanks for the critique!
[–]
stkdump
6y ago
It seems like they are just have bad names, as their unit probably is seconds not 1/seconds.