diff options
author | Ian Lepore <ian@FreeBSD.org> | 2017-01-13 17:03:23 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2017-01-13 17:03:23 +0000 |
commit | d5b937680cc3ce4df8540b20d66e321c33c26273 (patch) | |
tree | ec0911c6965e92398a33ee1658ea04695c3ddd19 /sys/kern | |
parent | 0f7ddf91e98ae4906294bd21bf397f84b331c67c (diff) | |
download | src-d5b937680cc3ce4df8540b20d66e321c33c26273.tar.gz src-d5b937680cc3ce4df8540b20d66e321c33c26273.zip |
Correct the comments about how much buffer is allocated.
Notes
Notes:
svn path=/head/; revision=312080
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 9c2be5d18236..b0a535cb67e3 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -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) |