Skip to content

Commit f2bb2dc

Browse files
say8425claude
andcommitted
fix: address PR review comments
- Fix calculateBurnRate to return 0 for first minute (avoid misleading values) - Move BLOCK_TOKEN_LIMIT constant to top with other constants - Fix markdown table formatting in translated READMEs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 612a2bb commit f2bb2dc

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

β€Ždocs/README.es.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Para ocultar la lΓ­nea de mΓ©tricas de uso (temporizador de reinicio, uso del bl
119119
| MΓ©trica | Normal (blanco) | Advertencia (amarillo) | CrΓ­tico (rojo) |
120120
| -------------- | --------------- | ---------------------- | -------------- |
121121
| Contexto % | < 50% | 50-80% | > 80% |
122-
| Uso del bloque %| < 50% | 50-80% | > 80% |
122+
| Uso del bloque % | < 50% | 50-80% | > 80% |
123123

124124
## Licencia
125125

β€Ždocs/README.ja.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Claude Code用カスタムステータスラむン。
119119
| ζŒ‡ζ¨™ | ζ­£εΈΈοΌˆη™½οΌ‰ | θ­¦ε‘ŠοΌˆι»„οΌ‰ | ε±ι™ΊοΌˆθ΅€οΌ‰ |
120120
| -------------- | ---------- | ---------- | ---------- |
121121
| γ‚³γƒ³γƒ†γ‚­γ‚Ήγƒˆ % | < 50% | 50-80% | > 80% |
122-
| ブロック使用量 %| < 50% | 50-80% | > 80% |
122+
| ブロック使用量 % | < 50% | 50-80% | > 80% |
123123

124124
## ラむセンス
125125

β€Ždocs/README.ko.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Claude Codeλ₯Ό μœ„ν•œ μ»€μŠ€ν…€ μƒνƒœν‘œμ‹œμ€„.
119119
| μ§€ν‘œ | 정상 (흰색) | κ²½κ³  (λ…Έλž€μƒ‰) | μœ„ν—˜ (빨간색) |
120120
| ------------ | ----------- | ------------- | ------------- |
121121
| μ»¨ν…μŠ€νŠΈ % | < 50% | 50-80% | > 80% |
122-
| 블둝 μ‚¬μš©λŸ‰ %| < 50% | 50-80% | > 80% |
122+
| 블둝 μ‚¬μš©λŸ‰ % | < 50% | 50-80% | > 80% |
123123

124124
## λΌμ΄μ„ μŠ€
125125

β€Žsrc/index.tsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ const CACHE_TTL = {
5050
blockUsage: 60000, // 60초 (JSONL νŒŒμ‹±μ€ λΉ„μš©μ΄ ν¬λ―€λ‘œ κΈ΄ TTL)
5151
};
5252

53+
// Pro plan 5μ‹œκ°„ 토큰 ν•œλ„ (μ•½ 450K)
54+
const BLOCK_TOKEN_LIMIT = 450000;
55+
5356
// TrueColor 색상 μ •μ˜
5457
const C = {
5558
RESET: "\x1b[0m",
@@ -245,14 +248,11 @@ function calculateBurnRate(
245248
const now = Date.now();
246249
const elapsedMinutes = (now - blockStartTime) / (1000 * 60);
247250

248-
if (elapsedMinutes < 1) return blockTokens; // 1λΆ„ 미만이면 ν˜„μž¬ 토큰 수 λ°˜ν™˜
251+
if (elapsedMinutes < 1) return 0; // 1λΆ„ λ―Έλ§Œμ—λŠ” 변동성이 큰 값을 ν‘œμ‹œν•˜μ§€ μ•ŠμŒ
249252

250253
return Math.round(blockTokens / elapsedMinutes);
251254
}
252255

253-
// Pro plan 5μ‹œκ°„ 토큰 ν•œλ„ (μ•½ 450K)
254-
const BLOCK_TOKEN_LIMIT = 450000;
255-
256256
// 메인 ν•¨μˆ˜
257257
async function main() {
258258
// 1. stdinμ—μ„œ Claude Code JSON 읽기

0 commit comments

Comments
Β (0)