Merge pull request #5476
73caf47Display time offset in the debug window's Peers tab (Pavel Janík)26a6baeAdd time offset to getpeerinfo output (Pavel Janík)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user