We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68bad39 commit 4704107Copy full SHA for 4704107
otsserver/rpc.py
@@ -186,8 +186,8 @@ def do_GET(self):
186
transactions_in_last_week = list(filter(lambda x: x["time"] > a_week_ago_posix, transactions))
187
fees_in_last_week = reduce(lambda a,b: a-b["fee"], transactions_in_last_week, 0)
188
try:
189
- time_between_transactions = str(round(168 / len(transactions_in_last_week))) # in hours based on 168 hours in a week
190
- time_between_transactions += " hour(s)"
+ time_between_transactions = str(round(168 / len(transactions_in_last_week), 2)) # in hours based on 168 hours in a week
+ time_between_transactions += " hours"
191
except ZeroDivisionError:
192
time_between_transactions = "N/A"
193
transactions.sort(key=lambda x: x["confirmations"])
0 commit comments