summaryrefslogtreecommitdiffstats
path: root/exporting
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2020-08-20 14:52:47 +0300
committerGitHub <noreply@github.com>2020-08-20 14:52:47 +0300
commit83e5cbe806bd81de526656df65ceb86bce17e392 (patch)
treeb158e1c41a6460f7761b68b0a3d3c62b3727b16c /exporting
parenteed186cffa7686a4459304d2e9a9be0ece7e093a (diff)
Change timestamps for global variables in Prometheus output (#9779)
Diffstat (limited to 'exporting')
-rw-r--r--exporting/prometheus/prometheus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exporting/prometheus/prometheus.c b/exporting/prometheus/prometheus.c
index 17cf902ebb..f6854cf179 100644
--- a/exporting/prometheus/prometheus.c
+++ b/exporting/prometheus/prometheus.c
@@ -364,7 +364,7 @@ static int print_host_variables(RRDVAR *rv, void *data)
opts->labels,
label_post,
value,
- ((rv->last_updated) ? rv->last_updated : opts->now) * 1000ULL);
+ opts->now * 1000ULL);
else
buffer_sprintf(
opts->wb,