summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/main/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp
index 1f35febb..6953d107 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -651,8 +651,8 @@ int main(int argc, char ** argv) {
LOG("n_past = %d\n", n_past);
// Display total tokens alongside total time
- if (n_past % params.token_interval == 0) {
- printf("\n\033[31mTokens consumed so far = %d / %d \033[0m\n", n_past, n_ctx);
+ if (params.token_interval > 0 && n_past % params.token_interval == 0) {
+ LOG_TEE("\n\033[31mTokens consumed so far = %d / %d \033[0m\n", n_past, n_ctx);
}
}