sm 1c4f1a6f95 added sparkline
the testing is very weak and I can get it to panic.
2015-10-28 21:46:20 -07:00
2015-10-28 21:46:20 -07:00
2015-10-28 21:46:20 -07:00
2015-09-30 23:15:57 -07:00
2015-09-30 23:15:57 -07:00

bps

bps is used to keep track of bandwidth rates

It is intended to be used as such:

// report on the rate over a 60 second interval, update every second
bw, _ := New(60*time.Second)
bw.Add(10)
b := &bytes.Buffer{}
b.Write([]byte("helloooooooooooooooooooooooooooooooooooooooooooooo"))
io.Copy(bw, b)
time.Sleep(1 * time.Second)
log.Printf("%+v", bw.HumanRate())
S
Description
bps is used to keep track of bandwidth rates
https://godoc.org/mcquay.me/bps
Readme
60 KiB
Languages
Go 100%