Fix overflow when calculating progress
Fix overflow when calculating progress

fhunleth/fwup,michaelkschmidt/fwup,michaelkschmidt/fwup,edahlseng/fwup,edahlseng/fwup,michaelkschmidt/fwup,fhunleth/fwup,fhunleth/fwup