From: Michael Tremer Date: Fri, 31 Oct 2025 17:25:14 +0000 (+0000) Subject: graphs: disk: Clarify the name of the sectors macro X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab6b2cd064d86ddd052f182eef2061cf5fb5a77f;p=collecty.git graphs: disk: Clarify the name of the sectors macro Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs/disk.c b/src/daemon/graphs/disk.c index 2bfeb18..a9e94fe 100644 --- a/src/daemon/graphs/disk.c +++ b/src/daemon/graphs/disk.c @@ -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 diff --git a/src/daemon/graphs/graph.h b/src/daemon/graphs/graph.h index 7246f1a..422eb6b 100644 --- a/src/daemon/graphs/graph.h +++ b/src/daemon/graphs/graph.h @@ -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); \