Commit f722ad55 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

adaptive: avoid a division by 0

rate.time may not be set in some cases.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c25d7334
......@@ -354,7 +354,7 @@ void HTTPChunkBufferedSource::bufferize(size_t readsize)
}
}
if(rate.size)
if(rate.size && rate.time)
{
connManager->updateDownloadRate(sourceid, rate.size, rate.time);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment