diff --git a/PriceSystem/CalcSpeedMonitor.py b/PriceSystem/CalcSpeedMonitor.py index 996b309..62f1778 100644 --- a/PriceSystem/CalcSpeedMonitor.py +++ b/PriceSystem/CalcSpeedMonitor.py @@ -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=1) 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(10) + str( pre_counter - client.llen(QUEUE)) + "/min")