Author: ian
Date: Fri Jan 13 17:03:23 2017
New Revision: 312080
URL: https://svnweb.freebsd.org/changeset/base/312080

Log:
  Correct the comments about how much buffer is allocated.

Modified:
  head/sys/kern/tty.c

Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c Fri Jan 13 16:54:44 2017        (r312079)
+++ head/sys/kern/tty.c Fri Jan 13 17:03:23 2017        (r312080)
@@ -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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to