From 0dbc9d1d1572a8721cda15fb3bde1d4355a392a8 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Wed, 30 Sep 2015 23:12:14 -0700 Subject: [PATCH] fxed readme --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index d19609a..3a53b16 100644 --- a/readme.md +++ b/readme.md @@ -4,11 +4,11 @@ It is intended to be used as such: - // report on 1, 10, 60 second intervals, update every second - bw, _ := NewBandwidth([]int{1, 10, 60}, time.Second) + // report on the rate over a 60 second interval, update every second + bw, _ := New(60*time.Second, 60) bw.Add(10) b := &bytes.Buffer{} b.Write([]byte("helloooooooooooooooooooooooooooooooooooooooooooooo")) io.Copy(bw, b) time.Sleep(1 * time.Second) - log.Printf("%+v", bw.Cur()) + log.Printf("%+v", bw.HumanRate())