bpo-36670, regrtest: Fix WindowsLoadTracker sampling rate by vstinner · Pull Request #16555 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comment, I should have had this in here originally. I think it might be worth adding a little explanation like:
# Calculated using 1/exp(5sec/1min) = 1/exp(5/60)the source is https://github.com/torvalds/linux/blob/master/include/linux/sched/loadavg.h#L21
If you feel like 1 second is better, then the new constant would be 0.98347145382161748947374 https://www.wolframalpha.com/input/?i=1%2Fexp%281%2F60%29