this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent divide by 0

+3
+3
consumer.go
··· 56 56 select { 57 57 case <-ticker.C: 58 58 eventsRead := c.EventsRead.Load() 59 + if eventsRead == 0 { 60 + continue 61 + } 59 62 bytesRead := c.BytesRead.Load() 60 63 avgEventSize := bytesRead / eventsRead 61 64 logger.Info("stats", "events_read", eventsRead, "bytes_read", bytesRead, "avg_event_size", avgEventSize)