Project

General

Profile

Bug #45 ยป 0001-stats-invalid-month-bug.-Bug-45.patch

Anoop Saldanha, 01/05/2010 01:01 AM

View differences:

src/counters.c
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-1/1)