Correct the comments about how much buffer is allocated.
This commit is contained in:
parent
0f7ddf91e9
commit
d5b937680c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312080
@ -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 New Issue
Block a user