modify scripts

This commit is contained in:
2025-03-15 17:39:25 +08:00
parent 3b76c00500
commit 7c0cf12704
4 changed files with 117 additions and 12 deletions

View File

@ -6,7 +6,8 @@ from datetime import datetime
from logging.handlers import RotatingFileHandler
from collections import defaultdict
global_host_data_dir = '/root/hostdir/stock_data'
home_dir = os.path.expanduser("~")
global_host_data_dir = f'{home_dir}/hostdir/stock_data'
# 统计日志频率
log_count = defaultdict(int) # 记录日志的次数