Fix size variable.

This commit is contained in:
Steven Smith 2015-08-29 09:36:26 -07:00
parent f5462be061
commit 71428a0a4f

View File

@ -190,12 +190,13 @@ bool installCIA(fs::MediaType destination, const std::string path, int curr, int
struct stat st; struct stat st;
fstat(fileno(fd), &st); fstat(fileno(fd), &st);
u64 size = (u64) (u32) st.st_size;
std::stringstream batchInstallStream; std::stringstream batchInstallStream;
batchInstallStream << name << " (" << curr << "/" << total << ")" << "\n"; batchInstallStream << name << " (" << curr << "/" << total << ")" << "\n";
installInfo = batchInstallStream.str(); installInfo = batchInstallStream.str();
app::install(destination, fd, (u64) st.st_size, &onProgress); app::install(destination, fd, size, &onProgress);
prevProgress = -1; prevProgress = -1;
installInfo = ""; installInfo = "";
@ -220,7 +221,7 @@ bool installCIA(fs::MediaType destination, const std::string path, int curr, int
} }
installInfo = batchInstallStream.str(); installInfo = batchInstallStream.str();
app::install(destination, fd, (u64) st.st_size, &onProgress); app::install(destination, fd, size, &onProgress);
prevProgress = -1; prevProgress = -1;
installInfo = ""; installInfo = "";
} else { } else {