mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
More progressbar improvements
This commit is contained in:
1 parent
ecea3844b0
commit
370bb4c315
7 files changed
+52
-41
No files matched your search
@@ -89,7 +89,7 @@ bool Buffer::ReadAllWithProgress(int fd, int knownSize, RequestProgress *progres
|
||||
memcpy(p, &buf[0], retval);
|
||||
total += retval;
|
||||
if (progress) {
|
||||
progress->Update((float)total / (float)knownSize);
|
||||
progress->Update(total, knownSize, false);
|
||||
progress->kBps = (float)(total / (time_now_d() - st)) / 1024.0f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user