From: Michael Tremer Date: Fri, 31 Oct 2025 17:43:04 +0000 (+0000) Subject: graphs: Define separate colors for reads/writes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e556d0f9c4979853bdc412a675ad094ab04c93da;p=telemetry.git graphs: Define separate colors for reads/writes Signed-off-by: Michael Tremer --- diff --git a/src/daemon/colors.h b/src/daemon/colors.h index 2d452a8..520eac9 100644 --- a/src/daemon/colors.h +++ b/src/daemon/colors.h @@ -66,6 +66,10 @@ #define COLOR_RX "#43a047" #define COLOR_TX "#fb8c00" +// I/O +#define COLOR_READ COLOR_GREEN +#define COLOR_WRITE COLOR_ORANGE + // Caches #define COLOR_CACHE_HIT COLOR_GREEN #define COLOR_CACHE_MISS COLOR_RED diff --git a/src/daemon/graphs/graph.h b/src/daemon/graphs/graph.h index 422eb6b..58e043e 100644 --- a/src/daemon/graphs/graph.h +++ b/src/daemon/graphs/graph.h @@ -368,10 +368,10 @@ static inline int __DRAW(td_args* args, const char* what, const char* field, } while (0) #define DRAW_IO_BYTES_READ(args, object, read_bytes) \ - __DRAW_IO_BYTES(args, object, read_bytes, COLOR_RX, "%s", _("Bytes Read")) + __DRAW_IO_BYTES(args, object, read_bytes, COLOR_READ, "%s", _("Bytes Read")) #define DRAW_IO_BYTES_WRITTEN(args, object, read_bytes) \ - __DRAW_IO_BYTES(args, object, read_bytes, COLOR_TX, "%s", _("Bytes Written")) + __DRAW_IO_BYTES(args, object, read_bytes, COLOR_WRITE, "%s", _("Bytes Written")) #define __DRAW_IO_BYTES(args, object, bytes, color, label, ...) \ do { \