From 57efcfe71d3485e8f2ddac6008fbbc8183804ac7 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Thu, 4 Jan 2007 14:43:08 +0000 Subject: [PATCH] changed output to be non-cascarding when using -n switch --- zoom/zoom-benchmark.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zoom/zoom-benchmark.c b/zoom/zoom-benchmark.c index 6de24ab..396cb67 100644 --- a/zoom/zoom-benchmark.c +++ b/zoom/zoom-benchmark.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-benchmark.c,v 1.16 2007-01-03 08:42:17 adam Exp $ + * $Id: zoom-benchmark.c,v 1.17 2007-01-04 14:43:08 marc Exp $ * * Asynchronous multi-target client doing search and piggyback retrieval */ @@ -365,8 +365,12 @@ int main(int argc, char **argv) /* updating events and event list */ error = ZOOM_connection_error(z[i-1] , &errmsg, &addinfo); if (error) - parameters.progress[i] = -progress; + parameters.progress[i] = zoom_progress[ZOOM_EVENT_UNKNOWN]; + //parameters.progress[i] = zoom_progress[ZOOM_EVENT_NONE]; + else if (event == ZOOM_EVENT_CONNECT) + parameters.progress[i] = zoom_progress[event]; else + //parameters.progress[i] = zoom_progress[event]; parameters.progress[i] += 1; update_events(elc, els, -- 1.7.10.4