Browse Source

Merge pull request #5057 from ngosang/statics

Minor change in Stats dialog
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
2d8d3c8152
  1. 2
      src/gui/statsdialog.cpp
  2. 4
      src/gui/statsdialog.ui

2
src/gui/statsdialog.cpp

@ -98,7 +98,7 @@ void StatsDialog::updateUI() {
: "0")); : "0"));
// Disk queues // Disk queues
ui->labelQueuedJobs->setText(QString::number(cs.jobQueueLength())); ui->labelQueuedJobs->setText(QString::number(cs.jobQueueLength()));
ui->labelJobsTime->setText(QString::number(cs.averageJobTime())); ui->labelJobsTime->setText(tr("%1 ms", "18 milliseconds").arg(cs.averageJobTime()));
ui->labelQueuedBytes->setText(Utils::Misc::friendlyUnit(cs.queuedBytes())); ui->labelQueuedBytes->setText(Utils::Misc::friendlyUnit(cs.queuedBytes()));
// Total connected peers // Total connected peers

4
src/gui/statsdialog.ui

@ -102,7 +102,7 @@
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="labelCacheHitsText"> <widget class="QLabel" name="labelCacheHitsText">
<property name="text"> <property name="text">
<string>Read cache Hits:</string> <string>Read cache hits:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -181,7 +181,7 @@
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="labelJobsTimeText"> <widget class="QLabel" name="labelJobsTimeText">
<property name="text"> <property name="text">
<string>Average time in queue (ms):</string> <string>Average time in queue:</string>
</property> </property>
</widget> </widget>
</item> </item>

Loading…
Cancel
Save