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:
parent
c465575dab
commit
edddf9d80e
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue