|
|
|
@ -91,6 +91,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
@@ -91,6 +91,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
|
|
|
|
|
" \"bytessent\": n, (numeric) The total bytes sent\n" |
|
|
|
|
" \"bytesrecv\": n, (numeric) The total bytes received\n" |
|
|
|
|
" \"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" |
|
|
|
|
" \"pingwait\": n, (numeric) ping wait\n" |
|
|
|
|
" \"version\": v, (numeric) The peer version, such as 7001\n" |
|
|
|
@ -131,6 +132,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
@@ -131,6 +132,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
|
|
|
|
|
obj.push_back(Pair("bytessent", stats.nSendBytes)); |
|
|
|
|
obj.push_back(Pair("bytesrecv", stats.nRecvBytes)); |
|
|
|
|
obj.push_back(Pair("conntime", stats.nTimeConnected)); |
|
|
|
|
obj.push_back(Pair("timeoffset", stats.nTimeOffset)); |
|
|
|
|
obj.push_back(Pair("pingtime", stats.dPingTime)); |
|
|
|
|
if (stats.dPingWait > 0.0) |
|
|
|
|
obj.push_back(Pair("pingwait", stats.dPingWait)); |
|
|
|
|