=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/sock.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/sndiod/sock.c 2013/11/18 17:37:45 1.7 --- src/usr.bin/sndiod/sock.c 2013/12/31 12:24:55 1.8 *************** *** 1,4 **** ! /* $OpenBSD: sock.c,v 1.7 2013/11/18 17:37:45 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: sock.c,v 1.8 2013/12/31 12:24:55 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 767,773 **** max = 1 + rate / d->round; min *= s->round; max *= s->round; ! appbufsz += s->round - 1; appbufsz -= appbufsz % s->round; if (appbufsz < min) appbufsz = min; --- 767,773 ---- max = 1 + rate / d->round; min *= s->round; max *= s->round; ! appbufsz += s->round / 2; appbufsz -= appbufsz % s->round; if (appbufsz < min) appbufsz = min;