Show download speed of NSP files

This commit is contained in:
Huntereb 2019-10-25 20:59:32 -04:00
parent 2fe766af47
commit 16f2d7d4bd

View file

@ -104,7 +104,7 @@ namespace tin::install::nsp
int downloadProgress = (int)(((double)bufferedPlaceholderWriter.GetSizeBuffered() / (double)bufferedPlaceholderWriter.GetTotalDataSize()) * 100.0);
printf("> Download Progress: %lu/%lu MB (%i%s) (%.2f MB/s)\r", downloadSizeMB, totalSizeMB, downloadProgress, "%", speed);
inst::ui::setInstInfoText("Downloading " + ncaFileName + "...");
inst::ui::setInstInfoText("Downloading " + ncaFileName + "at " + std::to_string(speed) + "MB/s");
inst::ui::setInstBarPerc((double)downloadProgress);
//consoleUpdate(NULL);
}