[Qt] format ping times in peers tab as ms

- also align ping times to the right
This commit is contained in:
Philip Kaufmann
2014-08-04 16:25:21 +02:00
parent 1913302fb7
commit ead6737b87
2 changed files with 6 additions and 3 deletions

View File

@@ -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