From f4d5ceb3c4d4ec085904123d8967669a7b4942ab Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 9 Sep 2007 09:36:10 +0000 Subject: [PATCH] - Fixed a unit problem in last commit --- src/GUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index ab9478429..049eef41d 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1149,8 +1149,8 @@ void GUI::updateLists() { return; } if(displaySpeedInTitle) { - QString dl_rate = QByteArray::number(BTSession->getSessionStatus().payload_download_rate, 'f', 1); - QString up_rate = QByteArray::number(BTSession->getSessionStatus().payload_upload_rate, 'f', 1); + QString dl_rate = QByteArray::number(BTSession->getSessionStatus().payload_download_rate/1024, 'f', 1); + QString up_rate = QByteArray::number(BTSession->getSessionStatus().payload_upload_rate/1024, 'f', 1); setWindowTitle(tr("qBittorrent %1 (DL: %2KiB/s, UP: %3KiB/s)", "%1 is qBittorrent version").arg(QString::fromUtf8(VERSION)).arg(dl_rate).arg(up_rate)); } }