[Qt] format ping times in peers tab as ms
- also align ping times to the right
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user