mirror of
https://github.com/rclone/rclone
synced 2024-11-09 06:50:32 +01:00
accounting: fix total ETA when --stats-unit bits is in effect
This commit is contained in:
parent
38864adc9c
commit
240c15883f
@ -201,8 +201,9 @@ func (s *StatsInfo) String() string {
|
||||
}
|
||||
dtRounded := dt - (dt % (time.Second / 10))
|
||||
|
||||
displaySpeed := speed
|
||||
if fs.Config.DataRateUnit == "bits" {
|
||||
speed = speed * 8
|
||||
displaySpeed *= 8
|
||||
}
|
||||
|
||||
var (
|
||||
@ -235,7 +236,7 @@ func (s *StatsInfo) String() string {
|
||||
fs.SizeSuffix(s.bytes),
|
||||
fs.SizeSuffix(totalSize).Unit("Bytes"),
|
||||
percent(s.bytes, totalSize),
|
||||
fs.SizeSuffix(speed).Unit(strings.Title(fs.Config.DataRateUnit)+"/s"),
|
||||
fs.SizeSuffix(displaySpeed).Unit(strings.Title(fs.Config.DataRateUnit)+"/s"),
|
||||
etaString(currentSize, totalSize, speed),
|
||||
xfrchkString,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user