diff --git a/lib/nghttp2_stream.c b/lib/nghttp2_stream.c index 3a5e4ad0..1c67fe40 100644 --- a/lib/nghttp2_stream.c +++ b/lib/nghttp2_stream.c @@ -114,8 +114,7 @@ static int stream_subtree_active(nghttp2_stream *stream) { */ static uint64_t stream_next_cycle(nghttp2_stream *stream, uint64_t last_cycle) { return last_cycle + - (stream->last_writelen + 1) * NGHTTP2_MAX_WEIGHT / - (uint32_t)stream->weight; + stream->last_writelen * NGHTTP2_MAX_WEIGHT / (uint32_t)stream->weight; } static int stream_obq_push(nghttp2_stream *dep_stream, nghttp2_stream *stream) {