Display time offset in the debug window's Peers tab

This commit is contained in:
Pavel Janík
2014-12-15 11:07:55 +01:00
parent 26a6bae753
commit 73caf47dfe
4 changed files with 34 additions and 2 deletions

View File

@@ -843,4 +843,9 @@ QString formatPingTime(double dPingTime)
return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10));
}
QString formatTimeOffset(int64_t nTimeOffset)
{
return QString(QObject::tr("%1 s")).arg(QString::number((int)nTimeOffset, 10));
}
} // namespace GUIUtil