Skip to content

Commit

Permalink
8.1.2 - Remove uptime score and align terminology
Browse files Browse the repository at this point in the history
* Removed uptime scores which always displayed 0 (May return when new uptime system is implemented)
* Aligned some terminology with Storj documentation
  • Loading branch information
ReneSmeekes authored Feb 27, 2020
1 parent 9ad2a03 commit 10fdf58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions earnings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
version = "8.1.1"
version = "8.1.2"

from calendar import monthrange
from datetime import datetime
Expand Down Expand Up @@ -288,11 +288,11 @@ def formatSize(size):
print("Total\t\t\t\t{}m\t{}\t{:10.2f} USD".format(formatSize(bh_total / hours_month), formatSize(sum_total), usd_sum_total))

print("\033[4m\nPayout and escrow by satellite:\033[0m")
print("SATELLITE\tFIRST CONTACT\tTYPE\t MONTH 1-3\t MONTH 4-6\t MONTH 7-9\t MONTH 10+")
print("SATELLITE\tFIRST CONTACT\tTYPE\t MONTH 1-3\t MONTH 4-6\t MONTH 7-9\t MONTH 10+")
for i in range(len(usd_sum)):
print("{}\t{}\tPayout\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD".format(sat_name[i],sat_start_dt[i],usd_sum[i]*.25,usd_sum[i]*.5,usd_sum[i]*.75,usd_sum[i]))
print("{}\t{}\tPaid\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD".format(sat_name[i],sat_start_dt[i],usd_sum[i]*.25,usd_sum[i]*.5,usd_sum[i]*.75,usd_sum[i]))
if len(sys.argv) < 3:
print("{} (Up.{}/Aud.{})\tEscrow\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\n".format(rep_status[i],uptime_score[i],audit_score[i],usd_sum[i]*.75,usd_sum[i]*.5,usd_sum[i]*.25,0))
print("{} (Audit score:{})\tHeld\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\n".format(rep_status[i],audit_score[i],usd_sum[i]*.75,usd_sum[i]*.5,usd_sum[i]*.25,0))
else:
print("\t\t\t\tEscrow\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\t{:7.4f} USD\n".format(usd_sum[i]*.75,usd_sum[i]*.5,usd_sum[i]*.25,0))
if any('*' in sdat for sdat in sat_start_dt):
Expand Down

0 comments on commit 10fdf58

Please sign in to comment.