Skip to content

Commit

Permalink
Increase balance printout to three decimal places.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiv committed Mar 27, 2011
1 parent f348f19 commit 3504bf0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions guiminer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ def format_khash(rate):

def format_balance(amount):
"""Format a quantity of Bitcoins in BTC."""
amount = float(amount)
if amount > 0.001:
return "%.2f BTC" % amount
return "0"
return "%.3f BTC" % float(amount)

def init_logger():
"""Set up and return the logging object and custom formatter."""
Expand Down

0 comments on commit 3504bf0

Please sign in to comment.