From 4d1b27f1d15851075ef054b8006b2902268f711f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 16 Oct 2023 20:22:52 +0000 Subject: [PATCH] loadtest: counters row offset from banner is definable --- citadel/utils/loadtest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/citadel/utils/loadtest.c b/citadel/utils/loadtest.c index d24977ccd..09a8eb58e 100644 --- a/citadel/utils/loadtest.c +++ b/citadel/utils/loadtest.c @@ -273,6 +273,7 @@ void perform_random_thing(int serv_sock) { } +#define ROW_OFFSET 8 // This is the main loop. We log in as the load test user, and then perform random operations until stopped. void *loadtest(void *pointer_to_thread_id) { @@ -301,7 +302,7 @@ void *loadtest(void *pointer_to_thread_id) { serv_gets(serv_sock, buf); // Find a nice spot on the screen to show the operation count for this thread. - int row = 10 + (thread_id % 20); + int row = ROW_OFFSET + (thread_id % 20); int col = (thread_id / 20) * 10; long ops = 0; printf("\033[%d;%dH\033[33m 0\033[0m", row, col); @@ -384,7 +385,7 @@ int main(int argc, char **argv) { // paint the screen for (i=0; i