summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-common/core/printtext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c
index 9c96524a..4fee1d1e 100644
--- a/src/fe-common/core/printtext.c
+++ b/src/fe-common/core/printtext.c
@@ -651,9 +651,9 @@ static char *get_timestamp(TEXT_DEST_REC *dest)
if (!show_timestamp(dest->level))
return NULL;
- if (timestamp_timeout > 0) {
- t = time(NULL);
+ t = time(NULL);
+ if (timestamp_timeout > 0) {
diff = t - dest->window->last_timestamp;
dest->window->last_timestamp = t;
if (diff < timestamp_timeout)