fixed wrong copy-paste
Costa Tsaousis (ktsaou) committed
Jul 11, 2017 at 21:07 UTC
0aab4c8c39c764ae5dba10c478e2de27cb2bcbba
1 file changed
+1
-3
src/backend_prometheus.c
+1
-3
@@ -104,11 +104,9 @@ static void rrd_stats_api_v1_charts_allmetrics_prometheus(RRDHOST *host, BUFFER
104
105
if(unlikely(help))
106
buffer_sprintf(wb, "\n# COMMENT chart \"%s\", context \"%s\", family \"%s\", units \"%s\"\n",
107
- prefix, context,
107
(names && st->name) ? st->name : st->id,
108
st->context,
109
st->family,
111
- (names && rd->name) ? rd->name : rd->id,
110
st->units
111
);
112
@@ -226,7 +224,7 @@ static inline time_t prometheus_preparation(RRDHOST *host, BUFFER *wb, uint32_t
224
);
225
226
if(show_range)
229
- buffer_sprintf(wb, ", values for time range %lu to %lu", (unsigned long)after, (unsigned long)now);
227
+ buffer_sprintf(wb, ", time range %lu to %lu", (unsigned long)after, (unsigned long)now);
228
229
buffer_strcat(wb, "\n\n");
230
}