Skip to content

Commit

Permalink
o Higher than percent resolution progress bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Sep 23, 2012
1 parent 3b8fe7e commit b9ae86d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions status-server.cc
Expand Up @@ -151,7 +151,7 @@ void StatusServer::RetireHandlerEvent(FileHandler *handler) {
"<td>%s</td>" \
"<td>%s</td>" \
"<td><div style='background:white;width:%dpx;border:1px solid black;'>\n" \
" <div style='width:%d%%;background:%s;'>&nbsp;</div>\n</div></td>" \
" <div style='width:%dpx;background:%s;'>&nbsp;</div>\n</div></td>" \
"<td>%s</td>"

#define sTimeColumns \
Expand All @@ -177,7 +177,8 @@ void StatusServer::AppendFileInfo(const char *progress_style,
} else {
Appendf(&content_, sProgressRowHtml, status,
stats.in_gapless ? "&rarr;" : "",
kProgressWidth, (int) (100 * stats.progress), progress_style,
kProgressWidth, (int) (kProgressWidth * stats.progress),
progress_style,
stats.out_gapless ? "&rarr;" : "");
}
const int secs = stats.duration_seconds;
Expand Down

0 comments on commit b9ae86d

Please sign in to comment.