mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-22 11:42:08 +08:00
* fix(traffic): avoid scientific notation in traffic display near 1000 threshold When a traffic value in any unit (KB, MB, etc.) falls in the 999.5–1000 range, toPrecision(3) rounds it to 1000 but outputs scientific notation "1.00e+3" instead of plain "1000". Check Math.round(dat) >= 1000 instead of dat >= 1000 to catch this rounding boundary. Signed-off-by: Alec <alechron@outlook.com> * fix(traffic): avoid scientific notation in formatConnectionTraffic Signed-off-by: Alec <alechron@outlook.com> --------- Signed-off-by: Alec <alechron@outlook.com>