优化均价算法

This commit is contained in:
2018-03-12 12:58:05 +08:00
parent 742bad7de9
commit a8c95698cd
6 changed files with 111 additions and 38 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ def monitor(pname):
while True:
pre_counter = client.llen(QUEUE)
time.sleep(60)
print(pname + "#####################################:".zfill(100) + str(pre_counter - client.llen(QUEUE)) + "/min")
now_counter = client.llen(QUEUE)
print(pname + "#########:".zfill(100) + str(pre_counter - now_counter) + "/min")
def format_cmd(cmd):