From 4b1e0f625cf57920ec552711801d8b02a0f7f7a1 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Sat, 30 Nov 2024 21:14:49 +0200 Subject: [PATCH] change dim order because of colours in reboot_required (#19111) --- src/collectors/proc.plugin/run_reboot_required.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collectors/proc.plugin/run_reboot_required.c b/src/collectors/proc.plugin/run_reboot_required.c index ff64c41eb79e49..5141016e1b94ba 100644 --- a/src/collectors/proc.plugin/run_reboot_required.c +++ b/src/collectors/proc.plugin/run_reboot_required.c @@ -57,15 +57,15 @@ int do_run_reboot_required(int update_every, usec_t dt) { update_every, RRDSET_TYPE_LINE); - rd_required = rrddim_add(st, "required", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE); rd_not_required = rrddim_add(st, "not_required", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE); + rd_required = rrddim_add(st, "required", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE); } struct stat buf; bool exists = (stat(signal_file_path, &buf) == 0); - rrddim_set_by_pointer(st, rd_required, exists ? 1 : 0); rrddim_set_by_pointer(st, rd_not_required, exists ? 0 : 1); + rrddim_set_by_pointer(st, rd_required, exists ? 1 : 0); rrdset_done(st); return 0;