优化均价计算程序

This commit is contained in:
2018-04-12 10:31:26 +08:00
parent b144cedbb4
commit b8ed0aa167
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ if __name__ == "__main__":
start_time = datetime.datetime.utcnow()
send_district_calc_cmd()
while not district_calc_cmd_finish():
time.sleep(5)
time.sleep(10)
logger.info("等待小区均价计算完成")
send_city_calc_cmd()
logger.info("城市均价计算完成")
+1 -3
View File
@@ -57,10 +57,8 @@ def timer(func):
arg_list = list()
for arg in args:
arg_list.append(str(arg))
if elapsed > config.get_timeout() * 10:
if elapsed > config.get_timeout():
performance_logger.info("函数名:%-20s\t耗时:%7.4f\t\t参数:(%s)" % (func.__name__, end - begin, arg_list))
else:
performance_logger.error("函数名:%-20s\t耗时:%7.4f\t\t参数:(%s)" % (func.__name__, end - begin, arg_list))
return rs
return _timer