diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-04 16:09:18 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-04 16:11:29 +0200 |
commit | 1913302fb7b1659feb72f3a532f5c5be0e8391e3 (patch) | |
tree | f8ede7b943a1769a989f146e1f72ce1d6c55e3ab /src/qt/guiutil.cpp | |
parent | d97a58f883c57da0507dde6dce9b8431f88e739c (diff) | |
parent | a5b2d9c82e985fa8df4457072b4fa30781f1d53a (diff) | |
download | bitcoin-1913302fb7b1659feb72f3a532f5c5be0e8391e3.tar.xz |
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 33a50a078d..6258c4160c 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 |