Skip to content

Commit

Permalink
Removes spurious \r in output that causes logging in journalctl to tr…
Browse files Browse the repository at this point in the history
…eat lines as binary and therefore hidden by default (ggerganov#10771)

Signed-off-by: Charles Darke <[email protected]>
Co-authored-by: Charles Darke <[email protected]>
  • Loading branch information
2 people authored and arthw committed Dec 20, 2024
1 parent 4b7ae34 commit ea373cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,9 @@ struct server_slot {

SLT_INF(*this,
"\n"
"\rprompt eval time = %10.2f ms / %5d tokens (%8.2f ms per token, %8.2f tokens per second)\n"
"\r eval time = %10.2f ms / %5d tokens (%8.2f ms per token, %8.2f tokens per second)\n"
"\r total time = %10.2f ms / %5d tokens\n",
"prompt eval time = %10.2f ms / %5d tokens (%8.2f ms per token, %8.2f tokens per second)\n"
" eval time = %10.2f ms / %5d tokens (%8.2f ms per token, %8.2f tokens per second)\n"
" total time = %10.2f ms / %5d tokens\n",
t_prompt_processing, n_prompt_tokens_processed, t_prompt, n_prompt_second,
t_token_generation, n_decoded, t_gen, n_gen_second,
t_prompt_processing + t_token_generation, n_prompt_tokens_processed + n_decoded);
Expand Down

0 comments on commit ea373cf

Please sign in to comment.