Skip to content

Commit

Permalink
Don't show 1B of 1B for completed up/download size. #130
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed Mar 9, 2023
1 parent ef88a00 commit be2c48b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Folding@home Client Changelog
=============================

## v8.1.17
- Don't show ``1B of 1B`` for completed up/download size. #130

## v8.1.16
- Fix core download retry logic.
- Only add client executable directory to lib path on Windows.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fah-client",
"version": "8.1.16",
"version": "8.1.17",
"bin": {
"fah-client": "./fah-client"
},
Expand Down
3 changes: 2 additions & 1 deletion src/fah/client/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ void Unit::setProgress(double done, double total) {
if (oldValue != progress) {
insert("progress", progress);

if (floor(oldValue * 100) < floor(progress * 100) && getState() != UNIT_RUN)
if (floor(oldValue * 100) < floor(progress * 100) &&
getState() != UNIT_RUN && 1 < total)
LOG_INFO(1, getState() << String::printf(" %0.0f%% ", progress * 100)
<< HumanSize(done) << "B of " << HumanSize(total) << 'B');
}
Expand Down

0 comments on commit be2c48b

Please sign in to comment.