From 36d299f891823e75f9a68ad4724fc281aad064db Mon Sep 17 00:00:00 2001 From: Nick Tiskov Date: Sun, 26 Jan 2014 15:05:09 +0400 Subject: [PATCH] Fix missing percent sign in stats dialog --- src/statsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/statsdialog.cpp b/src/statsdialog.cpp index 9ea8bc356..fa25c3b36 100644 --- a/src/statsdialog.cpp +++ b/src/statsdialog.cpp @@ -118,12 +118,12 @@ void StatsDialog::updateUI() { peers += (*iBegin).status().num_peers; ui->labelWriteStarve->setText( ( ss.disk_write_queue > 0 && peers > 0 ) ? - misc::accurateDoubleToString(100. * (qreal)ss.disk_write_queue / (qreal)peers, 2) : + misc::accurateDoubleToString(100. * (qreal)ss.disk_write_queue / (qreal)peers, 2) + "%" : QString("0\%") ); ui->labelReadStarve->setText( ( ss.disk_read_queue > 0 && peers > 0 ) ? - misc::accurateDoubleToString(100. * (qreal)ss.disk_read_queue / (qreal)peers, 2) : + misc::accurateDoubleToString(100. * (qreal)ss.disk_read_queue / (qreal)peers, 2) + "%" : QString("0\%") ); // Disk queues