mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 08:58:26 +08:00
accounting: write the current bwlimit to the log on SIGUSR2
Some checks are pending
Docker beta build / Build image job (push) Waiting to run
Some checks are pending
Docker beta build / Build image job (push) Waiting to run
This commit is contained in:
parent
7d32da441e
commit
19458e8459
|
@ -35,12 +35,13 @@ func (tb *tokenBucket) startSignalHandler() {
|
|||
|
||||
tb.toggledOff = !tb.toggledOff
|
||||
tb.curr, tb.prev = tb.prev, tb.curr
|
||||
s := "disabled"
|
||||
s, limit := "disabled", "off"
|
||||
if !tb.curr._isOff() {
|
||||
s = "enabled"
|
||||
limit = tb.currLimit.Bandwidth.String()
|
||||
}
|
||||
|
||||
fs.Logf(nil, "Bandwidth limit %s by user", s)
|
||||
fs.Logf(nil, "Bandwidth limit %s by user (now %s)", s, limit)
|
||||
}()
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue
Block a user