commit 01a28e6bdbf79585ed65c81d67ab2f578162c0e7
parent fa002afed8726d428cbaf2e596d8c65666e3e318
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sat, 5 Dec 2015 22:08:35 -0800
Merge branch 'master' of https://github.com/cfillion/reapack
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/progress.cpp b/src/progress.cpp
@@ -69,7 +69,7 @@ void Progress::updateProgress()
{
if(m_current) {
const string text = "Downloading " +
- to_string(m_done + 1) + " of " + to_string(m_total) + ": " +
+ to_string(min(m_done + 1, m_total)) + " of " + to_string(m_total) + ": " +
m_current->name() + "\n" + m_current->url();
SetWindowText(m_label, text.c_str());