v0.1.12 last gauge info

This commit is contained in:
wty-yy
2025-12-21 14:53:33 +08:00
parent 4546be76bf
commit 59522777c9
7 changed files with 44 additions and 26 deletions

View File

@@ -54,6 +54,7 @@ class BaseGoal:
result[f'mean@{i}'] = 0
if len(metrics) == 0:
return result
metrics = [max(0.0, min(1.0, m)) for m in metrics]
metrics.sort()
result['mean'] = float(sum(metrics) / len(metrics))
for i in [25, 50]: