diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-09-04 15:31:56 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-09-04 15:32:03 +0200 |
| commit | bbc2b39860f66b4c7b191f9f069eb6fd3a56f73b (patch) | |
| tree | 3e17bd1aadc7812c1e83db1883a66954bc716c57 /src/rpcnet.cpp | |
| parent | Merge pull request #5677 (diff) | |
| parent | Report minimum ping time in getpeerinfo (diff) | |
| download | discoin-bbc2b39860f66b4c7b191f9f069eb6fd3a56f73b.tar.xz discoin-bbc2b39860f66b4c7b191f9f069eb6fd3a56f73b.zip | |
Merge pull request #6633
a6eb4ba Report minimum ping time in getpeerinfo (Matt Corallo)
Diffstat (limited to 'src/rpcnet.cpp')
| -rw-r--r-- | src/rpcnet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index 56ec59171..30d0ed627 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -96,6 +96,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp) " \"conntime\": ttt, (numeric) The connection time in seconds since epoch (Jan 1 1970 GMT)\n" " \"timeoffset\": ttt, (numeric) The time offset in seconds\n" " \"pingtime\": n, (numeric) ping time\n" + " \"minping\": n, (numeric) minimum observed ping time\n" " \"pingwait\": n, (numeric) ping wait\n" " \"version\": v, (numeric) The peer version, such as 7001\n" " \"subver\": \"/Satoshi:0.8.5/\", (string) The string version\n" @@ -139,6 +140,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp) obj.push_back(Pair("conntime", stats.nTimeConnected)); obj.push_back(Pair("timeoffset", stats.nTimeOffset)); obj.push_back(Pair("pingtime", stats.dPingTime)); + obj.push_back(Pair("minping", stats.dPingMin)); if (stats.dPingWait > 0.0) obj.push_back(Pair("pingwait", stats.dPingWait)); obj.push_back(Pair("version", stats.nVersion)); |