mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 09:59:03 +02:00
progressBar: limit resolution
This commit is contained in:
+3
-1
@@ -43,7 +43,9 @@ void ProgressBar::display(int value, char force)
|
||||
fputc('=', stderr);
|
||||
}
|
||||
fprintf(stderr, "%*s", (int)(_progressLen-nbEq), "");
|
||||
printInfo("] " + std::to_string(percent) + "%", false);
|
||||
char perc_str[11];
|
||||
snprintf(perc_str, sizeof(perc_str), "] %3.2f%%", percent);
|
||||
printInfo(perc_str, false);
|
||||
}
|
||||
void ProgressBar::done()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user