Skip to content

Commit

Permalink
Fix switched share counts in ratio...
Browse files Browse the repository at this point in the history
Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
  • Loading branch information
Pttn committed Nov 12, 2018
1 parent d4e5791 commit 092e6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Stats {
}
else {
std::cout << " Shares: " << _shares - _rejectedShares << "/" << _shares;
if (_shares > 0) std::cout << " (" << FIXED(1) << 100.*((double) _shares)/((double) _shares - _rejectedShares) << "%)";
if (_shares > 0) std::cout << " (" << FIXED(1) << 100.*((double) _shares - _rejectedShares)/((double) _shares) << "%)";
std::cout << ", sh/min = " << FIXED(1) << 60.*((double) _shares)/elapsedSecs;
}
}
Expand Down

0 comments on commit 092e6d1

Please sign in to comment.