xbps icon indicating copy to clipboard operation
xbps copied to clipboard

[Low Priority] Improve speed measurement

Open Anachron opened this issue 2 years ago • 2 comments

I get ridiculous speed statements when I sync from time to time.

Today I got

sudo xbps-install -Su
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 308KB [avg rate: -14GB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
x86_64-repodata: 13KB [avg rate: 211MB/s]

Edit: Both results are wrong, btw.

Anachron avatar Jan 21 '23 20:01 Anachron

Well short syncs also give me crazy speed sometimes, just got 12GB/s after syncing. Didn't manage a negative value though.

I imagine though that having lengthier interactions will actually give more accurate results, so I struggle finding reason why anyone would care.

Might look at it for fun.

fvalasiad avatar Apr 15 '23 22:04 fvalasiad

Yes there is no way to actually make this reliable for small downloads. Negative is a simple bug where incomplete downloads that are begin continued will be counted wrong iirc.

Duncaen avatar Apr 15 '23 23:04 Duncaen