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() 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{}