From 0ee522cdcbe371ab6407ebbe42e84c39ac396714 Mon Sep 17 00:00:00 2001 From: Marcin Jachymiak Date: Tue, 14 Apr 2020 18:22:37 -0400 Subject: [PATCH] Clean up message and increase threshold in funds-checker.py --- setup-scripts/funds-checker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-scripts/funds-checker.py b/setup-scripts/funds-checker.py index c40089e4..4608352d 100755 --- a/setup-scripts/funds-checker.py +++ b/setup-scripts/funds-checker.py @@ -60,9 +60,9 @@ async def check_health(): return # Alert devs when only a fraction of the allowance is remaining. - UNALLOC_THRESHOLD = 0.2 - if allocated_funds >= UNALLOC_THRESHOLD * allowance_funds : - await send_msg(client, "{} of allowance spent: \n{}".format(UNALLOC_THRESHOLD, alloc_msg), force_notify=True) + SPEND_THRESHOLD = 0.8 + if allocated_funds >= SPEND_THRESHOLD * allowance_funds : + await send_msg(client, "More than {:.0%} of allowance spent: \n{}".format(SPEND_THRESHOLD, alloc_msg), force_notify=True) return # Send an informational heartbeat if all checks passed.