diff --git a/mailer.py b/mailer.py index 5813e1f..f34f380 100644 --- a/mailer.py +++ b/mailer.py @@ -568,11 +568,14 @@ def _render_html(data: dict, base_url: str) -> str: # 24h 趋势 HTML if data["stats_24h"]: s = data["stats_24h"] + # 进度条: 用 table 实现 (Gmail 兼容), 宽 200px, 蓝色按利用率百分比填充 sample_rows = "".join( f'{_fmt_ts(smp.timestamp, "%m-%d %H:%M")}' f'{smp.utilization:.1f}%' f'' - f'{smp.utilization:.1f}%' + f'' + f'' + f'
' f'' for smp in data["samples_24h"] )