Browse Source

Merge #145: Specify format for "total profit" output

d61e0b0 Specify format for "total profit" output (Kristaps Kaupe)
master
AdamISZ 8 years ago
parent
commit
d852633c23
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  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