change dim order because of colours in reboot_required (#19111)
Ilya Mashchenko committed
Nov 30, 2024 at 21:14 UTC
4b1e0f625cf57920ec552711801d8b02a0f7f7a1
1 file changed
+2
-2
src/collectors/proc.plugin/run_reboot_required.c
+2
-2
@@ -57,15 +57,15 @@ int do_run_reboot_required(int update_every, usec_t dt) {
57
update_every,
58
RRDSET_TYPE_LINE);
59
60
- rd_required = rrddim_add(st, "required", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE);
60
rd_not_required = rrddim_add(st, "not_required", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE);
61
+ rd_required = rrddim_add(st, "required", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE);
62
}
63
64
struct stat buf;
65
bool exists = (stat(signal_file_path, &buf) == 0);
66
67
- rrddim_set_by_pointer(st, rd_required, exists ? 1 : 0);
67
rrddim_set_by_pointer(st, rd_not_required, exists ? 0 : 1);
68
+ rrddim_set_by_pointer(st, rd_required, exists ? 1 : 0);
69
rrdset_done(st);
70
71
return 0;