1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-02 21:16:04 +00:00

fix: torrent details speed info unit (#6845)

This commit is contained in:
Yat Ho 2024-05-26 05:43:38 +08:00 committed by GitHub
parent c465575dab
commit edddf9d80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -988,12 +988,12 @@ void printDetails(tr_variant* top)
if (tr_variantDictFindInt(t, TR_KEY_rateDownload, &i))
{
fmt::print(" Download Speed: {:s}\n", Speed{ i, Speed::Units::KByps }.to_string());
fmt::print(" Download Speed: {:s}\n", Speed{ i, Speed::Units::Byps }.to_string());
}
if (tr_variantDictFindInt(t, TR_KEY_rateUpload, &i))
{
fmt::print(" Upload Speed: {:s}\n", Speed{ i, Speed::Units::KByps }.to_string());
fmt::print(" Upload Speed: {:s}\n", Speed{ i, Speed::Units::Byps }.to_string());
}
if (tr_variantDictFindInt(t, TR_KEY_haveUnchecked, &i) && tr_variantDictFindInt(t, TR_KEY_haveValid, &j))