1
0
mirror of https://github.com/rclone/rclone.git synced 2025-02-20 07:48:33 +02:00
Aleksandar Jankovic 4ba6532915 accounting: make stats response consistent
core/stats can return two different schemas in 'transferring' field.
One is object with fields the other is just plain string.
This is confusing, unnecessary and makes defining response schema
more difficult. It also returns `lastError` as value which can be
rendered differently depending on source of error.

This change standardizes 'transferring' filed to always return
object but with reduced fields if they are not available.
Former string item is converted to {name:remote_name} object.

'lastError' is forced to be a string as in some cases it can be encoded
as an object.
2019-07-28 14:48:19 +01:00
..
2019-06-19 10:50:59 +01:00
2019-07-02 16:29:40 +01:00
2019-06-19 11:59:46 +01:00
2019-06-19 11:59:46 +01:00
2019-06-19 11:59:46 +01:00
2019-07-28 14:48:19 +01:00
2018-08-21 10:58:59 +01:00
2019-06-19 11:59:46 +01:00
2019-02-07 16:42:26 +00:00
2019-06-19 11:59:46 +01:00
2019-06-19 11:59:46 +01:00
2019-04-30 14:12:18 +02:00
2019-04-30 14:12:18 +02:00
2019-06-15 18:32:17 +01:00
2019-04-15 21:49:58 +01:00