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
1 changed files with 2 additions and 2 deletions

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))