refactor(downloader): build every progress speed string with format_speed

This commit is contained in:
imSp4rky
2026-12-04 15:50:22 -07:00
parent cc40deeb5c
commit a788f4d7b2
3 changed files with 23 additions and 9 deletions
+1
View File
@@ -56,6 +56,7 @@ def test_parse_speed_limit_rejects(value):
("rate", "expected"),
[
(500, "500 bytes/s"),
(999.2, "1.0 kB/s"),
(512_000, "512.0 kB/s"),
(39 * 1024**2, "40.9 MB/s"),
(1.5 * 1024**3, "1.6 GB/s"),