Repository navigation
Commit 6c8576a
committed
fix(shared): token counts just below a unit boundary use the next unit
formatTokens picked the K/M/B/T suffix from the unrounded value, so 999,999
rounded to 1000K. Choose the unit after rounding instead.
AI-assisted; verified with the tests and tools listed above.1 parent d935fc8 commit 6c8576a
1 file changed
Lines changed: 11 additions & 6 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
0 commit comments