1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

The bell overload times are now measured in milliseconds, although

the config box still enters them in seconds (it allows fractions).

[originally from svn r1089]
This commit is contained in:
Simon Tatham
2001-04-28 15:47:26 +00:00
parent 296cad5962
commit 321adcb4b9
3 changed files with 22 additions and 8 deletions

View File

@ -906,7 +906,7 @@ void term_out(void) {
* t seconds ago.
*/
while (beephead &&
beephead->ticks < ticks - cfg.bellovl_t*1000) {
beephead->ticks < ticks - cfg.bellovl_t) {
struct beeptime *tmp = beephead;
beephead = tmp->next;
sfree(tmp);
@ -916,7 +916,7 @@ void term_out(void) {
}
if (cfg.bellovl && beep_overloaded &&
ticks-lastbeep >= cfg.bellovl_s * 1000) {
ticks-lastbeep >= cfg.bellovl_s) {
/*
* If we're currently overloaded and the
* last beep was more than s seconds ago,