Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
css
· 6y ago · 0 comments
FASTEST_POLL_RATE is 1000hz, SLOWEST_POLL_RATE is 10hz. Thus, FASTEST_POLL_RATE is a smaller number on a per-second basis.
Comments
[–]
bovine3dom
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
OP
6y ago
Yeah that’s a very good call, I will probably rename these. Thanks for the critique!