diff --git a/src/tty.c b/src/tty.c index 17a4bdb..1716542 100644 --- a/src/tty.c +++ b/src/tty.c @@ -647,7 +647,7 @@ int tty_connect(void) struct tm *tm; gettimeofday(&tv, NULL); tm = localtime(&tv.tv_sec); - sprintf(current_str, "[%-2d:%02d:%02d.%03ld] ", tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec/1000); + sprintf(current_str, "[%2d:%02d:%02d.%03ld] ", tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec/1000); fprintf(stdout, ANSI_COLOR_GRAY "%s" ANSI_COLOR_RESET, current_str); next_timestamp = 0; if (option.log && option.timestamp)