From 5ad4711002228b6b291535fca7412459fe4e7284 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 29 May 2006 21:17:42 +0000 Subject: [PATCH] * print the timestamps correctly --- org.glite.lb.common/src/lb_perftest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 1.8.2.3