mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix: torrent details speed info unit (#6845)
This commit is contained in:
+2
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user