1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-13 20:38:12 +02:00

Fix stats print

This commit is contained in:
Nick Craig-Wood 2016-06-18 16:40:22 +01:00
parent 3f7b2c1ade
commit f438f1e9ef

View File

@ -119,7 +119,7 @@ func (s *StatsInfo) String() string {
dtSeconds := dt.Seconds()
speed := 0.0
if dt > 0 {
speed = float64(s.bytes) / 1024 / dtSeconds
speed = float64(s.bytes) / dtSeconds
}
dtRounded := dt - (dt % (time.Second / 10))
buf := &bytes.Buffer{}