artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2ec82
)
round client block size to nearest possble
author
ratchov
<ratchov@openbsd.org>
Tue, 31 Dec 2013 12:24:55 +0000
(12:24 +0000)
committer
ratchov
<ratchov@openbsd.org>
Tue, 31 Dec 2013 12:24:55 +0000
(12:24 +0000)
usr.bin/sndiod/sock.c
patch
|
blob
|
history
diff --git
a/usr.bin/sndiod/sock.c
b/usr.bin/sndiod/sock.c
index
a552190
..
62c3c96
100644
(file)
--- a/
usr.bin/sndiod/sock.c
+++ b/
usr.bin/sndiod/sock.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sock.c,v 1.
7 2013/11/18 17:37:4
5 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.
8 2013/12/31 12:24:5
5 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@
-767,7
+767,7
@@
sock_setpar(struct sock *f)
max = 1 + rate / d->round;
min *= s->round;
max *= s->round;
- appbufsz += s->round
- 1
;
+ appbufsz += s->round
/ 2
;
appbufsz -= appbufsz % s->round;
if (appbufsz < min)
appbufsz = min;