From c6c9f7cfd477c03f00d2eeb4d408dbcd68f30026 Mon Sep 17 00:00:00 2001 From: Pierrick Hymbert Date: Sun, 25 Feb 2024 10:49:03 +0100 Subject: [PATCH] server: logs avoid static in general Co-authored-by: Georgi Gerganov --- examples/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index dd0f13958..91ef41219 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -302,7 +302,7 @@ struct llama_client_slot } void print_timings() const { - static char buffer[512]; + char buffer[512]; double t_token = t_prompt_processing / num_prompt_tokens_processed; double n_tokens_second = 1e3 / t_prompt_processing * num_prompt_tokens_processed; sprintf(buffer, "prompt eval time = %10.2f ms / %5d tokens (%8.2f ms per token, %8.2f tokens per second)",