From 8fbe376bd5828bc33c5950be2fd9c0f6d1b2d46c Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Thu, 8 Mar 2018 11:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PriceSystem/CalcSpeedMonitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PriceSystem/CalcSpeedMonitor.py b/PriceSystem/CalcSpeedMonitor.py index c6561f5..996b309 100644 --- a/PriceSystem/CalcSpeedMonitor.py +++ b/PriceSystem/CalcSpeedMonitor.py @@ -11,9 +11,9 @@ def monitor(pname): client = redis.Redis(connection_pool=redis_pool) while True: pre_counter = client.llen(QUEUE) - time.sleep(1) + time.sleep(60) print(pname + "#####################################:".zfill(100) + str( - pre_counter - client.llen(QUEUE)) + "/s") + pre_counter - client.llen(QUEUE)) + "/min") def format_cmd(cmd):