]> git.ipfire.org Git - collecty.git/commitdiff
graphs: disk: Clarify the name of the sectors macro
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Oct 2025 17:25:14 +0000 (17:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Oct 2025 17:25:14 +0000 (17:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/graphs/disk.c
src/daemon/graphs/graph.h

index 2bfeb18b26fd47451cf4ba3eb8d061b1a1d9a82d..a9e94fe26b6d538addd66ca832c981daef6bd0f3 100644 (file)
@@ -41,7 +41,7 @@ static int disk_io_render(td_ctx* ctx, td_graph* graph,
        PRINT_HEADER4(args, _("Current"), _("Average"), _("Minimum"), _("Maximum"));
 
        // Draw the temperature
-       DRAW_IO_SECTORS(args, object, "read_sectors", "write_sectors");
+       DRAW_IO_BYTES_FROM_SECTORS(args, object, "read_sectors", "write_sectors");
 
        // XXX TODO Add discarded bytes
 
index 7246f1a83dcd3cfe74fb31e26662715a25b297af..422eb6b128fa121f84c121938f678ac05a63fcbc 100644 (file)
@@ -353,7 +353,7 @@ static inline int __DRAW(td_args* args, const char* what, const char* field,
 /*
        This draws an I/O graph
 */
-#define DRAW_IO_SECTORS(args, object, read_sectors, write_sectors) \
+#define DRAW_IO_BYTES_FROM_SECTORS(args, object, read_sectors, write_sectors) \
        do { \
                COMPUTE_BYTES_FROM_SECTORS(args, read_sectors, object); \
                COMPUTE_BYTES_FROM_SECTORS(args, write_sectors, object); \