From edddf9d80ed7e651eee9d6c74ee916acfa929d18 Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Sun, 26 May 2024 05:43:38 +0800 Subject: [PATCH] fix: torrent details speed info unit (#6845) --- utils/remote.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/remote.cc b/utils/remote.cc index 6f76000ba..096a94351 100644 --- a/utils/remote.cc +++ b/utils/remote.cc @@ -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))