#define SECONDS_HIGHRES "%%14.2lf%%ss"
#define SECONDS "%%15.2lfs"
-#define BYTES "%%12.2lf%%s%s", _("B")
+#define BYTES "%%13.2lf %%s%s"
+#define BYTES_UNIT _("B")
// Temperatures
#define KELVIN "%%14.2lf K"
#define PRINT_EMPTY_LABEL(args) SCRIPT(args, "COMMENT: ")
#define PRINT_NOTHING(args) SCRIPT(args, "COMMENT: ")
#define PRINT(args, field, object, format, ...) \
- SCRIPT(args, "GPRINT:" FIELD ":" format, FIELD_AND_OBJECT(field, object) ##__VA_ARGS__)
+ SCRIPT(args, "GPRINT:" FIELD ":" format, FIELD_AND_OBJECT(field, object), ##__VA_ARGS__)
#define PRINT_EOL(args) SCRIPT(args, "COMMENT:" EOL)
/*
#define __DRAW_IO_BYTES(args, object, bytes, color, label, ...) \
do { \
DRAW_AREA_WITH_LABEL(args, bytes, object, color, 0, label, __VA_ARGS__); \
- PRINT_CAMM(args, bytes, object, BYTES); \
+ PRINT_CAMM(args, bytes, object, BYTES, BYTES_UNIT); \
} while (0)
/*
// Draw the area outlines afterwards
DRAW_AREA_OUTLINE_WITH_LABEL(args, "mem_mod_respip", NULL,
COLOR_DNS_RPZ, 0, _("Request Policy Zones"));
- PRINT_CAMM(args, "mem_mod_respip", NULL, BYTES);
+ PRINT_CAMM(args, "mem_mod_respip", NULL, BYTES, BYTES_UNIT);
DRAW_AREA_OUTLINE_WITH_LABEL(args, "mem_mod_validator", NULL,
COLOR_DNS_VALIDATOR, STACKED, _("Validator"));
- PRINT_CAMM(args, "mem_mod_validator", NULL, BYTES);
+ PRINT_CAMM(args, "mem_mod_validator", NULL, BYTES, BYTES_UNIT);
DRAW_AREA_OUTLINE_WITH_LABEL(args, "mem_mod_iterator", NULL,
COLOR_DNS_ITERATOR, STACKED, _("Iterator"));
- PRINT_CAMM(args, "mem_mod_iterator", NULL, BYTES);
+ PRINT_CAMM(args, "mem_mod_iterator", NULL, BYTES, BYTES_UNIT);
DRAW_AREA_OUTLINE_WITH_LABEL(args, "mem_cache_rrset", NULL,
COLOR_DNS_RRSETS, STACKED, _("RRSet Objects"));
- PRINT_CAMM(args, "mem_cache_rrset", NULL, BYTES);
+ PRINT_CAMM(args, "mem_cache_rrset", NULL, BYTES, BYTES_UNIT);
DRAW_AREA_OUTLINE_WITH_LABEL(args, "mem_cache_message", NULL,
COLOR_DNS_MSGS, STACKED, _("Message Objects"));
- PRINT_CAMM(args, "mem_cache_message", NULL, BYTES);
+ PRINT_CAMM(args, "mem_cache_message", NULL, BYTES, BYTES_UNIT);
PRINT_EMPTY_LINE(args);