移除无用包

This commit is contained in:
2018-03-07 13:13:14 +08:00
parent 933f2d7aec
commit 4d91003f72
6 changed files with 960 additions and 1045 deletions
+3 -2
View File
@@ -2,9 +2,10 @@ import json
import multiprocessing
import time
import redis
import config
QUEUE = "calc_cmd"
redis_pool = redis.ConnectionPool(host='192.168.0.144', port=6379, db=0)
redis_pool = redis.ConnectionPool(host=config.get_redis_host(), port=6379, db=0)
def monitor(pname):
@@ -12,7 +13,7 @@ def monitor(pname):
while True:
pre_counter = client.llen(QUEUE)
time.sleep(60)
print(pname + "#####################################:".zfill(100) + str(
print(pname + "##################:".zfill(20) + str(
pre_counter - client.llen(QUEUE)) + "/min")