addressed linting and spelling.

This commit is contained in:
sm
2016-02-25 22:46:42 -08:00
parent fc1f5ce2bc
commit 89425716d1
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ const (
minResolution = 3
)
// BPS calculates bandwith rates.
// BPS calculates bandwidth rates.
//
// Instantiate a BPS using one of the New* functions then feed bytes either via
// BPS.Add, or writing to it (it implements io.Writer). When the accumulated
@@ -118,7 +118,7 @@ func (b *BPS) Add(i int64) {
// Rate returns the current rate (bytes / second).
func (b *BPS) Rate() float64 {
b.Lock()
var total int64 = 0
var total int64
for _, b := range b.buckets {
total += b
}