From 1c1c8cef89be0e373258127ccb95e533e3fe0b7b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 8 Sep 2010 18:05:25 +0200 Subject: [PATCH] Print engine uptime on the same line as date and time. --- src/counters.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/counters.c b/src/counters.c index 242a326e76..f717393075 100644 --- a/src/counters.c +++ b/src/counters.c @@ -960,10 +960,10 @@ static int SCPerfOutputCounterFileIface() fprintf(sc_perf_op_ctx->fp, "----------------------------------------------" "---------------------\n"); - fprintf(sc_perf_op_ctx->fp, "Uptime: %"PRId32"d, %02dh %02dm %02ds\n", days, hours, min, sec); - fprintf(sc_perf_op_ctx->fp, "Date: %" PRId32 "/%" PRId32 "/%04d -- %02d:%02d:%02d\n", + fprintf(sc_perf_op_ctx->fp, "Date: %" PRId32 "/%" PRId32 "/%04d -- " + "%02d:%02d:%02d (uptime: %"PRId32"d, %02dh %02dm %02ds)\n", tms->tm_mday, tms->tm_mon + 1, tms->tm_year + 1900, tms->tm_hour, - tms->tm_min, tms->tm_sec); + tms->tm_min, tms->tm_sec, days, hours, min, sec); fprintf(sc_perf_op_ctx->fp, "----------------------------------------------" "---------------------\n"); fprintf(sc_perf_op_ctx->fp, "%-25s | %-25s | %-s\n", "Counter", "TM Name",