diff options
author | Wei Jiangang <weijg.fnst@cn.fujitsu.com> | 2016-03-14 17:58:29 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2016-05-18 15:04:27 +0300 |
commit | d43eda3d19152372d265a93ca2cf69aa86a9d4ae (patch) | |
tree | 64a63896d6e2a12d82556b84de38c5f8ef88299a /util/buffer.c | |
parent | de4905f4bc645ad2991b9b535e8902f81abaf8c7 (diff) | |
download | qemu-d43eda3d19152372d265a93ca2cf69aa86a9d4ae.zip qemu-d43eda3d19152372d265a93ca2cf69aa86a9d4ae.tar.gz qemu-d43eda3d19152372d265a93ca2cf69aa86a9d4ae.tar.bz2 |
util: fix comment typos
Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util/buffer.c')
-rw-r--r-- | util/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/buffer.c b/util/buffer.c index a6118bf..33e94d1 100644 --- a/util/buffer.c +++ b/util/buffer.c @@ -25,7 +25,7 @@ #define BUFFER_MIN_INIT_SIZE 4096 #define BUFFER_MIN_SHRINK_SIZE 65536 -/* define the factor alpha for the expentional smoothing +/* define the factor alpha for the exponential smoothing * that is used in the average size calculation. a shift * of 7 results in an alpha of 1/2^7. */ #define BUFFER_AVG_SIZE_SHIFT 7 @@ -45,7 +45,7 @@ static void buffer_adj_size(Buffer *buffer, size_t len) old, buffer->capacity); /* make it even harder for the buffer to shrink, reset average size - * to currenty capacity if it is larger than the average. */ + * to current capacity if it is larger than the average. */ buffer->avg_size = MAX(buffer->avg_size, buffer->capacity << BUFFER_AVG_SIZE_SHIFT); } |