@cryptotaxi247 / netdata-1 / commits / 3ef57c555

statsd better comments

Costa Tsaousis (ktsaou) committed Apr 16, 2018 at 22:26 UTC 3ef57c555a03601d00467326bed750df02b4b5bc
1 file changed +3 -3
src/statsd.c
+3 -3
@@ -101,7 +101,7 @@ typedef enum statsd_metric_type {
101
102
103 typedef struct statsd_metric {
104 - avl avl; // indexing
104 + avl avl; // indexing - has to be first
105
106 const char *name; // the name of the metric
107 uint32_t hash; // hash of the name
@@ -122,9 +122,9 @@ typedef struct statsd_metric {
122
123 // chart related members
124 STATS_METRIC_OPTIONS options; // STATSD_METRIC_OPTION_* (bitfield)
125 - char reset; // set to 1 to reset this metric to zero
125 + char reset; // set to 1 by the charting thread to instruct the collector thread(s) to reset this metric
126 collected_number last; // the last value sent to netdata
127 - RRDSET *st; // the chart of this metric
127 + RRDSET *st; // the private chart of this metric
128 RRDDIM *rd_value; // the dimension of this metric value
129 RRDDIM *rd_count; // the dimension for the number of events received
130