mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
Fix stats print
This commit is contained in:
parent
3f7b2c1ade
commit
f438f1e9ef
@ -119,7 +119,7 @@ func (s *StatsInfo) String() string {
|
|||||||
dtSeconds := dt.Seconds()
|
dtSeconds := dt.Seconds()
|
||||||
speed := 0.0
|
speed := 0.0
|
||||||
if dt > 0 {
|
if dt > 0 {
|
||||||
speed = float64(s.bytes) / 1024 / dtSeconds
|
speed = float64(s.bytes) / dtSeconds
|
||||||
}
|
}
|
||||||
dtRounded := dt - (dt % (time.Second / 10))
|
dtRounded := dt - (dt % (time.Second / 10))
|
||||||
buf := &bytes.Buffer{}
|
buf := &bytes.Buffer{}
|
||||||
|
Loading…
Reference in New Issue
Block a user