From 7f4cebdf4b6d801edef3aefe5128360efca7ab7d Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Tue, 5 Jan 2010 12:48:44 +0530 Subject: [PATCH] stats invalid month bug. Bug #45 --- src/counters.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/counters.c b/src/counters.c index 16b23cc..a6f3bd9 100644 --- a/src/counters.c +++ b/src/counters.c @@ -686,9 +686,10 @@ static int SCPerfOutputCounterFileIface() fprintf(sc_perf_op_ctx->fp, "----------------------------------------------" "---------------------\n"); - fprintf(sc_perf_op_ctx->fp, "%" PRId32 "/%" PRId32 "/%04d -- %02d:%02d:%02d\n", - tms->tm_mday, tms->tm_mon, tms->tm_year + 1900, tms->tm_hour, - tms->tm_min, tms->tm_sec); + //fprintf(sc_perf_op_ctx->fp, "%" PRId32 "/%" PRId32 "/%04d -- %02d:%02d:%02d\n", + // tms->tm_mday, tms->tm_mon + 1, tms->tm_year + 1900, tms->tm_hour, + // tms->tm_min, tms->tm_sec); + fprintf(sc_perf_op_ctx->fp, "%s", asctime(tms)); fprintf(sc_perf_op_ctx->fp, "----------------------------------------------" "---------------------\n"); fprintf(sc_perf_op_ctx->fp, "%-25s | %-25s | %-s\n", "Counter", "TM Name", -- 1.5.5