From 4cf0cf87b2f298f417178df3d8a41e1c3226b176 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 25 Jan 2021 08:52:38 -0800 Subject: [PATCH] fix timing bug --- app/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli.py b/app/cli.py index d89e25c..21f2f39 100644 --- a/app/cli.py +++ b/app/cli.py @@ -72,7 +72,7 @@ def process_payouts(): latest_payout = str(latest_payout.id) diff = arrow.utcnow() - last - minutes = diff.seconds / 60 + minutes = diff.total_seconds() / 60 hours = minutes / 60 xmr_to_send = hours * prices['in_xmr'] axmr_to_send = monero.to_atomic(xmr_to_send)