Skip to content

Commit a629030

Browse files
committed
improve comments
1 parent d77c262 commit a629030

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/netexp/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// - Test netdev.*NetDev.Traffic + $HOST_PROC.
66
// - Add proper logging.
77
// - Test netdev's logging.
8-
// - Use layer8co/toolbox/container/ringbuf in netdev instead of []int64 once it's ready.
8+
// - Once layer8co/toolbox/container/ringbuf is ready, use it in netdev for storing samples instead of the []int64.
99
// - Implement a generic bucketed pool in layer8co/toolbox and use that in rcu.*BufferRcu instead of sync.Pool.
1010
// - Move rcu to layer8co/toolbox.
1111

internal/series/series.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ func (s *TimeSeries) Put(sample int64) {
4343
s.Samples[len(s.Samples)-1] = sample
4444
}
4545

46-
// Rate is only applicaple to cumulative series.
47-
// It returns the rate of change per second over the last d duration.
46+
// Rate returns the rate of change per second over the last d duration.
47+
// It is only applicable to cumulative series.
4848
//
4949
// Notes:
5050
// - d must be >= s.Interval.

0 commit comments

Comments
 (0)