Fix progress computation

This commit is contained in:
Johan Mattsson
2022-12-03 15:26:31 +01:00
committed by GitHub
parent 02b8bf33fb
commit 954bd69e30
+1 -1
View File
@@ -652,7 +652,7 @@ bool GameManager::InstallMemstickZip(struct zip *z, const Path &zipfile, const P
if (fwrite(buffer, readSize, 1, outf) != 1)
break;
bytesCopied += readSize;
installProgress_ = (float)allBytes / (float)allBytes;
installProgress_ = (float)bytesCopied / (float)allBytes;
}
delete[] buffer;