优化代码
This commit is contained in:
@@ -11,9 +11,9 @@ def monitor(pname):
|
|||||||
client = redis.Redis(connection_pool=redis_pool)
|
client = redis.Redis(connection_pool=redis_pool)
|
||||||
while True:
|
while True:
|
||||||
pre_counter = client.llen(QUEUE)
|
pre_counter = client.llen(QUEUE)
|
||||||
time.sleep(1)
|
time.sleep(60)
|
||||||
print(pname + "#####################################:".zfill(100) + str(
|
print(pname + "#####################################:".zfill(100) + str(
|
||||||
pre_counter - client.llen(QUEUE)) + "/s")
|
pre_counter - client.llen(QUEUE)) + "/min")
|
||||||
|
|
||||||
|
|
||||||
def format_cmd(cmd):
|
def format_cmd(cmd):
|
||||||
|
|||||||
Reference in New Issue
Block a user