Skip to content

Commit 972bf9c

Browse files
committed
Merge pull request #6999
f6d9d5e add (max)uploadtarget infos to getnettotals RPC help (Jonas Schnelli)
2 parents 0a547d2 + f6d9d5e commit 972bf9c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/rpcnet.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,16 @@ UniValue getnettotals(const UniValue& params, bool fHelp)
368368
"{\n"
369369
" \"totalbytesrecv\": n, (numeric) Total bytes received\n"
370370
" \"totalbytessent\": n, (numeric) Total bytes sent\n"
371-
" \"timemillis\": t (numeric) Total cpu time\n"
371+
" \"timemillis\": t, (numeric) Total cpu time\n"
372+
" \"uploadtarget\":\n"
373+
" {\n"
374+
" \"timeframe\": n, (numeric) Length of the measuring timeframe in seconds\n"
375+
" \"target\": n, (numeric) Target in bytes\n"
376+
" \"target_reached\": true|false, (boolean) True if target is reached\n"
377+
" \"serve_historical_blocks\": true|false, (boolean) True if serving historical blocks\n"
378+
" \"bytes_left_in_cycle\": t, (numeric) Bytes left in current time cycle\n"
379+
" \"time_left_in_cycle\": t (numeric) Seconds left in current time cycle\n"
380+
" }\n"
372381
"}\n"
373382
"\nExamples:\n"
374383
+ HelpExampleCli("getnettotals", "")

0 commit comments

Comments
 (0)