优化代码

This commit is contained in:
2018-03-08 11:20:57 +08:00
parent f21f3e01ca
commit 8fbe376bd5
+2 -2
View File
@@ -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):