usage

usage 0.6.7

工具與目錄
在這頁

修正 1 項

01

解決剛啟動時燃燒速度警告誤判的問題

之前因為用來預測用完時間的樣本數太少,導致程式剛啟動、明明只用了 1% 或 14% 的極低額度時,也會嚇人地跳出紅字警告。現在我們加了兩道安全閥:第一,系統必須收集夠多且夠久的樣本(10 分鐘內至少 5 個、跨度 5 分鐘)才會開始預估;第二,只有當你已經用掉至少 50% 額度時,警告才會真的顯示出來,否則一律保持原本的「重置 X 分鐘」。就像是剛開始跑步的第一分鐘即使衝很快,教練也不會馬上警告你體力透支,而是等你跑了一小段、而且體力真的消耗過半了,才會根據穩定的步伐來提醒你。

官方原文

**Burn-rate warning false positives**: after v0.6.6 shipped, real-world testing showed the red warning firing at 1% / 14% / 36% used right after restart, because a 2-point slope based on only 2-3 fresh samples is unstable and low-percent forecasts have huge headroom regardless. Fix adds two guardrails: forecasting only runs when the last-10-minute window holds ≥ 5 samples spanning ≥ 5 minutes; the warning only replaces the reset line when the current percent is ≥ 50%. Otherwise the original "Resets in X" text stays.