Browse Source

Specify format for "total profit" output

Else it displays e-notation for small amounts (less than 100 satoshis, I
guess), like 4.5e-07.
master
Kristaps Kaupe 8 years ago
parent
commit
d61e0b05a3
  1. 2
      jmclient/jmclient/wallet_utils.py

2
jmclient/jmclient/wallet_utils.py

@ -728,7 +728,7 @@ def wallet_fetch_history(wallet, options):
print(' %s best block is %s' % (datetime.fromtimestamp(now)
.strftime("%Y-%m-%d %H:%M"), bestblockhash))
total_profit = float(balance - sum(deposits)) / float(100000000)
print('total profit = ' + str(total_profit) + ' BTC')
print('total profit = %.8f BTC' % total_profit)
if abs(total_profit) > 0:
try:

Loading…
Cancel
Save