diff --git a/docs/content/rc.md b/docs/content/rc.md index 5598174f2..d3819c0a3 100644 --- a/docs/content/rc.md +++ b/docs/content/rc.md @@ -126,7 +126,9 @@ This returns all available stats rclone rc core/stats -Returns following values: +Returns the following values: + +``` { "speed": average speed in bytes/sec since start of the process, "bytes": total transferred bytes since the start of the process, @@ -151,6 +153,7 @@ Returns following values: "checking": an array of names of currently active file checks [] } +``` Values for "transferring", "checking" and "lastError" are only assigned if data is available. The value for "eta" is null if an eta cannot be determined. diff --git a/fs/accounting/stats.go b/fs/accounting/stats.go index cd2c4ee0b..f6b143940 100644 --- a/fs/accounting/stats.go +++ b/fs/accounting/stats.go @@ -29,7 +29,9 @@ This returns all available stats rclone rc core/stats -Returns following values: +Returns the following values: + +` + "```" + ` { "speed": average speed in bytes/sec since start of the process, "bytes": total transferred bytes since the start of the process, @@ -54,6 +56,7 @@ Returns following values: "checking": an array of names of currently active file checks [] } +` + "```" + ` Values for "transferring", "checking" and "lastError" are only assigned if data is available. The value for "eta" is null if an eta cannot be determined. `,