Skip to content

Commit

Permalink
Merge pull request #28268 from liewegas/wip-progress-bar
Browse files Browse the repository at this point in the history
mon: fix off-by-one rendering progress bar

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
  • Loading branch information
tchaikov committed Jun 5, 2019
2 parents 2cdcefb + 0e49ad7 commit e531b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/Monitor.cc
Expand Up @@ -3031,7 +3031,7 @@ void Monitor::get_cluster_status(stringstream &ss, Formatter *f)
ss << " " << i.second.message << "\n";
ss << " [";
unsigned j;
for (j=0; j < i.second.progress * 30; ++j) {
for (j = 0; j < (unsigned)(i.second.progress * 30.0); ++j) {
ss << '=';
}
for (; j < 30; ++j) {
Expand Down

0 comments on commit e531b6a

Please sign in to comment.