Added context state to output of RWHO command.
[citadel.git] / citadel / utils / loadtest.c
index 6ed6e979f453cfcbcce035da77adb18851e00ce3..8d4e41b2f6e26708edabeffa7a3c4f65bf6055ae 100644 (file)
@@ -314,7 +314,7 @@ void *loadtest(void *pointer_to_thread_id) {
                printf("\033[%d;%dH\033[32m%8ld\033[0m", row, col, ++ops);
                ++ops_completed;                // this is declared "volatile" so we don't need to lock it
                if (thread_id == 0) {
-                       printf("\033[2;55H\033[44m\033[33m\033[1m%d ops/sec \033[0m", (ops_completed / (time(NULL) - time_started)));
+                       printf("\033[2;55H\033[44m\033[33m\033[1m%ld ops/sec \033[0m", (ops_completed / (time(NULL) - time_started)));
                }
                fflush(stdout);
        }