commit 667ea257dad4327c90566e59f596bef8d8b3aa69 parent 0289b4ba003cef9e60498c46732df5b51314ed4f Author: Michael Savage <mikejsavage@gmail.com> Date: Thu May 25 02:36:35 +0300 Oops Diffstat:
launcher/main.cc | | | 4 | ++-- |
diff --git a/launcher/main.cc b/launcher/main.cc @@ -407,7 +407,7 @@ static WORK_QUEUE_CALLBACK( download_file ) { } std::string body; - str< 256 > path( "/%s", entry.checksum.e ); + str< 256 > path( "/{}", entry.checksum.e ); GetResult ok = http_get( address, HOST, path.c_str(), &body, download_progress, &file->bytes_downloaded ); // TODO: real error handling ASSERT( ok == GET_OK ); @@ -663,7 +663,7 @@ int main() { } ImGui::PushStyleColor( ImGuiCol_PlotHistogram, ImColor( 255, 0, 0 ) ); - str< 256 > progress_text( "%.2f/%.2fMb. %.2f%% %.2fKb/s", + str< 256 > progress_text( "{.2}/{.2}Mb. {.2}% {.2}Kb/s", total_downloaded / 1024.0 / 1024.0, updater->update_size / 1024.0 / 1024.0, frac * 100,