1
mirror of https://github.com/rclone/rclone synced 2024-12-24 15:43:45 +01:00
rclone/fs/accounting
Sam Lai b26db8e640
accounting: bwlimit signal handler should always start
The SIGUSR2 signal handler for bandwidth limits currently only starts
if rclone is started at a time when a bandwidth limit applies. This
means that if rclone starts _outside_ such a time, i.e. with no
bandwidth limits, then enters a time where bandwidth limits do apply,
it will not be possible to use SIGUSR2 to toggle it.

This fixes that by always starting the signal handler, but only
toggling the limiter if there is a bandwidth limit configured.
2023-06-22 17:59:24 +01:00
..
accounting_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
accounting_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
accounting_unix.go accounting: bwlimit signal handler should always start 2023-06-22 17:59:24 +01:00
accounting.go Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
inprogress.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
prometheus.go docs: cleanup spelling of size and rate units 2021-04-27 02:25:52 +03:00
stats_groups_test.go fs: fix race conditions in --max-delete and --max-delete-size 2023-03-09 09:25:31 +00:00
stats_groups.go accounting: fix panic in core/stats-reset with unknown group - fixes #6327 2022-08-05 17:30:55 +01:00
stats_test.go accounting: limit length of ETA string 2023-02-04 17:29:08 +01:00
stats.go accounting: fix Prometheus metrics to be the same as core/stats 2023-06-12 17:42:29 +01:00
token_bucket_test.go Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
token_bucket.go accounting: bwlimit signal handler should always start 2023-06-22 17:59:24 +01:00
tpslimit_test.go fs/accounting: fix occasionally failing test on macOS 2021-02-07 14:59:53 +00:00
tpslimit.go accounting: factor --tpslimit code into accounting from fshttp 2021-01-08 10:29:57 +00:00
transfer.go fs: fix typos found by codespell 2023-03-25 12:51:04 +01:00
transfermap.go accounting: show checking tag if available even on transfers 2023-03-01 11:10:38 +00:00