mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct the comments about how much buffer is allocated.
This commit is contained in:
parent
0f7ddf91e9
commit
d5b937680c
1 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ tty_watermarks(struct tty *tp)
|
|||
size_t bs = 0;
|
||||
int error;
|
||||
|
||||
/* Provide an input buffer for 0.2 seconds of data. */
|
||||
/* Provide an input buffer for 2 seconds of data. */
|
||||
if (tp->t_termios.c_cflag & CREAD)
|
||||
bs = MIN(tp->t_termios.c_ispeed / 5, TTYBUF_MAX);
|
||||
error = ttyinq_setsize(&tp->t_inq, tp, bs);
|
||||
|
|
@ -127,7 +127,7 @@ tty_watermarks(struct tty *tp)
|
|||
/* Set low watermark at 10% (when 90% is available). */
|
||||
tp->t_inlow = (ttyinq_getallocatedsize(&tp->t_inq) * 9) / 10;
|
||||
|
||||
/* Provide an output buffer for 0.2 seconds of data. */
|
||||
/* Provide an output buffer for 2 seconds of data. */
|
||||
bs = MIN(tp->t_termios.c_ospeed / 5, TTYBUF_MAX);
|
||||
error = ttyoutq_setsize(&tp->t_outq, tp, bs);
|
||||
if (error != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue