aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
authorR E Broadley <rebroad+github@gmail.com>2016-10-14 21:11:38 +0700
committerR E Broadley <rebroad+github@gmail.com>2016-10-15 20:43:11 +0700
commit1724a405c9065f2c939e936aca9b5d37fca5e954 (patch)
treeec0a4b2adf350f1dfbef0408d9d6e3dd314c207d /src/qt/guiutil.cpp
parent8d46429c83ec3815d0c595bf541ef5557c6b4942 (diff)
Display minimum ping in debug window.
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 0beaddf997..42dafa1175 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -947,7 +947,7 @@ QString formatServicesStr(quint64 mask)
QString formatPingTime(double dPingTime)
{
- return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10));
+ return (dPingTime == std::numeric_limits<int64_t>::max()/1e6 || dPingTime == 0) ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10));
}
QString formatTimeOffset(int64_t nTimeOffset)