changeset 520:ab56ed0d0c25

Slight optimization.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2012 23:31:10 +0300
parents f17d2ab25618
children a9a81db93c74
files main.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Tue Jun 05 23:20:52 2012 +0300
+++ b/main.c	Tue Jun 05 23:31:10 2012 +0300
@@ -237,7 +237,10 @@
 {
     char tmpStr[128], *buf;
 
-    str_get_timestamp(tmpStr, sizeof(tmpStr), "½17½[½11½%H:%M:%S½17½]½0½ ");
+    if (flags & LOG_STAMP)
+    {
+        str_get_timestamp(tmpStr, sizeof(tmpStr), "½17½[½11½%H:%M:%S½17½]½0½ ");
+    }
 
     buf = th_strdup_vprintf(fmt, ap);