write_prometheus plugin: Use the "static" macro to specify PROMETHEUS_DEFAULT_STALENE...
authorFlorian Forster <octo@collectd.org>
Fri, 11 Nov 2016 19:42:36 +0000 (20:42 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 11 Nov 2016 19:42:39 +0000 (20:42 +0100)
commit604607d3463fbe13eac252308f8a2497fb190167
treeb05421e3fdb3980c16428b19a87428061c6f0c8a
parentc53c496b6db4e11fd8aed8df9556dad481220196
write_prometheus plugin: Use the "static" macro to specify PROMETHEUS_DEFAULT_STALENESS_DELTA.

Fixes:

    write_prometheus.c:56:1: error: initializer element is not constant
     static cdtime_t staleness_delta = PROMETHEUS_DEFAULT_STALENESS_DELTA;
     ^
src/write_prometheus.c