Skip to content

Commit e310092

Browse files
committed
clarify change in CountFlowTuple()
1 parent 44bc5bc commit e310092

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

processing/unicorn_aggregator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ func (a *UnicornAggregator) submit(submitter util.StatsSubmitter, dummyMode bool
137137

138138
}
139139

140-
// CountFlowTuple increments the flow tuple counter for the given key.
140+
// CountFlowTuple increments the flow tuple counter for the given key. If addCnt
141+
// is >1, then the caller is responsible for providing the correct (sub-total)
142+
// counts for bytestoclient and bytestoserver.
141143
func (a *UnicornAggregator) CountFlowTuple(key string, bytestoclient int64,
142144
bytestoserver int64, addCnt int64) {
143145
a.UnicornTuplesMutex.Lock()

0 commit comments

Comments
 (0)