1
mirror of https://github.com/rclone/rclone synced 2024-12-01 10:31:57 +01:00
rclone/fs/accounting
Nick Craig-Wood 5990573ccd accounting: fix layout of stats - fixes #2910
This fixes several things wrong with the layout of the stats.

Transfers which haven't started are printed in the same format as
those which have so the stats with `--progress` don't show horrible
artifacts.

Checkers and transfers now get a ": checkers" and ": transfers" label
on the end of the stats line.  Transfers will have the transfer stats
when the transfer has started instead of this.

There was a bug in the routine which shortened the file names (it
always produces strings 1 too long).  This is now fixed with a test.

The formatting string was wrong with a fixed width of 45 - this is now
replaces with the value of `--stats-file-name-length`.

This also meant that there were unecessary leading spaces in the file
names.  So the default `--stats-file-name-length` was raised to 45
from 40.
2019-01-14 16:12:39 +00:00
..
accounting_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
accounting_test.go accounting: fix layout of stats - fixes #2910 2019-01-14 16:12:39 +00:00
accounting_unix.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
accounting.go accounting: fix layout of stats - fixes #2910 2019-01-14 16:12:39 +00:00
inprogress.go fs/accounting: factor into separate files without changing functionality 2018-02-02 15:14:40 +00:00
stats_test.go fs/accounting: factor out eta and percent calculations and write tests 2018-08-28 22:21:17 +01:00
stats.go accounting: fix layout of stats - fixes #2910 2019-01-14 16:12:39 +00:00
stringset.go accounting: fix layout of stats - fixes #2910 2019-01-14 16:12:39 +00:00
token_bucket.go fs/accounting: increase maximum burst size of token bucket 2018-08-30 17:24:08 +01:00