]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Replace nasty SI file size prefix
authorMatt Joiner <anacrolix@gmail.com>
Tue, 5 Aug 2025 12:43:41 +0000 (22:43 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 5 Aug 2025 12:43:41 +0000 (22:43 +1000)
webseed/client.go

index c15b146e69bb4542972e2757afbc2014ea6e0f3b..dc5858bc299024e3faca566a47e2fe67b6239a7f 100644 (file)
@@ -128,7 +128,7 @@ func (ws *Client) StartNewRequest(ctx context.Context, r RequestSpec, debugLogge
                                        debugLogger.Debug(
                                                "request for part",
                                                "url", req.URL,
-                                               "file size", humanize.Bytes(uint64(e.Length)),
+                                               "file size", humanize.IBytes(uint64(e.Length)),
                                                "range", req.Header.Get("Range"),
                                                "CF-Cache-Status", resp.Header.Get("CF-Cache-Status"),
                                        )