summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/options.c
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-06-22 20:30:42 +0000
committerkn <kn@openbsd.org>2019-06-22 20:30:42 +0000
commite9959c3eed29c9dae133cfee8d61a9620430c8d1 (patch)
tree8f9ed2c195a4f4e8ff791cf3f7ef764021884c68 /usr.bin/tmux/options.c
parentMake computation of re-challenge timeout more obvious (diff)
downloadwireguard-openbsd-e9959c3eed29c9dae133cfee8d61a9620430c8d1.tar.xz
wireguard-openbsd-e9959c3eed29c9dae133cfee8d61a9620430c8d1.zip
Use timeout_add_msec(9)
hz can simply be reduced has the code wants to wait (period * hz) / 1000 [ticks] = period / 1000 [s] = period [ms]. With the zero check, this perfectly matches the millisecond version. This conversion by itself also lifts the implicit expection of the period to be evenly divisible by ten; in case it was not, integer division would truncate it. See /sys/wscons/wskbd.c for how the period is set up. OK mpi
Diffstat (limited to 'usr.bin/tmux/options.c')
0 files changed, 0 insertions, 0 deletions