aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-08-04 16:25:21 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-08-04 19:23:57 +0200
commitead6737b87ee238aa0c7f81f9186c62f15ab8d67 (patch)
tree900d2c10961a26a59cb9fac4bd68d5eed58c4c6d /src/qt/guiutil.cpp
parent1913302fb7b1659feb72f3a532f5c5be0e8391e3 (diff)
[Qt] format ping times in peers tab as ms
- also align ping times to the right
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 6258c4160c..ed83909608 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -806,7 +806,7 @@ QString formatServicesStr(uint64_t mask)
QString formatPingTime(double dPingTime)
{
- return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 s")).arg(QString::number(dPingTime, 'f', 3));
+ return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10));
}
} // namespace GUIUtil