From: Michal Voců Date: Mon, 29 May 2006 21:17:42 +0000 (+0000) Subject: * print the timestamps correctly X-Git-Tag: connpool_branch_start~27 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5ad4711002228b6b291535fca7412459fe4e7284;p=jra1mw.git * print the timestamps correctly --- diff --git a/org.glite.lb.common/src/lb_perftest.c b/org.glite.lb.common/src/lb_perftest.c index 2fa6dbb..61e3409 100644 --- a/org.glite.lb.common/src/lb_perftest.c +++ b/org.glite.lb.common/src/lb_perftest.c @@ -263,7 +263,7 @@ glite_wll_perftest_produceEventString(char **event) struct timeval now; gettimeofday(&now, NULL); - fprintf(stderr, "PERFTEST_BEGIN_TIMESTAMP=%lu.%lu\n", + fprintf(stderr, "PERFTEST_BEGIN_TIMESTAMP=%lu.%06lu\n", (unsigned long)now.tv_sec,(unsigned long)now.tv_usec); } @@ -329,7 +329,7 @@ glite_wll_perftest_consumeEvent(edg_wll_Event *event) (strcmp(event->userTag.name, PERFTEST_END_TAG_NAME) == 0) && (strcmp(event->userTag.value, PERFTEST_END_TAG_VALUE) == 0)) { /* print the timestamp */ - fprintf(stderr, "PERFTEST_END_TIMESTAMP=%lu.%lu\n", + fprintf(stderr, "PERFTEST_END_TIMESTAMP=%lu.%06lu\n", (unsigned long)endtime.tv_sec,(unsigned long)endtime.tv_usec); ret = 1; } @@ -356,7 +356,7 @@ glite_wll_perftest_consumeEventString(const char *event_string) /* check for the termination event */ if(strstr(event_string, termination_string) != NULL) { /* print the timestamp */ - fprintf(stderr, "PERFTEST_END_TIMESTAMP=%lu.%lu\n", + fprintf(stderr, "PERFTEST_END_TIMESTAMP=%lu.%06lu\n", (unsigned long)endtime.tv_sec,(unsigned long)endtime.tv_usec); ret = 1; } @@ -390,7 +390,7 @@ glite_wll_perftest_consumeEventIlMsg(const char *msg) /* check for the termination event */ if(strstr(event, termination_string) != NULL) { /* print the timestamp */ - fprintf(stderr, "PERFTEST_END_TIMESTAMP=%lu.%lu\n", + fprintf(stderr, "PERFTEST_END_TIMESTAMP=%lu.%06lu\n", endtime.tv_sec, endtime.tv_usec); ret = 1; }