]> git.ipfire.org Git - oddments/collecty.git/commitdiff
graphs: Define separate colors for reads/writes
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Oct 2025 17:43:04 +0000 (17:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Oct 2025 17:43:04 +0000 (17:43 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/colors.h
src/daemon/graphs/graph.h

index 2d452a80689d378e98289310c95d9e7c412a8146..520eac91b1026b91b0e5328483c0765061959f30 100644 (file)
 #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
index 422eb6b128fa121f84c121938f678ac05a63fcbc..58e043eae9355b8e5b80842e5efbb7e994da39bb 100644 (file)
@@ -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 { \