diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-08-04 16:09:18 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-08-04 16:11:29 +0200 |
| commit | 1913302fb7b1659feb72f3a532f5c5be0e8391e3 (patch) | |
| tree | f8ede7b943a1769a989f146e1f72ce1d6c55e3ab /src/qt/guiutil.cpp | |
| parent | Merge pull request #4582 (diff) | |
| parent | [Qt] tweak new peers tab in console window (diff) | |
| download | discoin-1913302fb7b1659feb72f3a532f5c5be0e8391e3.tar.xz discoin-1913302fb7b1659feb72f3a532f5c5be0e8391e3.zip | |
Merge pull request #4285
a5b2d9c [Qt] tweak new peers tab in console window (Philip Kaufmann)
Diffstat (limited to 'src/qt/guiutil.cpp')
| -rw-r--r-- | src/qt/guiutil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 33a50a078..6258c4160 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -804,4 +804,9 @@ QString formatServicesStr(uint64_t mask) return QObject::tr("None"); } +QString formatPingTime(double dPingTime) +{ + return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 s")).arg(QString::number(dPingTime, 'f', 3)); +} + } // namespace GUIUtil |