X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoom-benchmark.c;h=8e54c0ae3b6cbea8110fefeddf1fc805acd00b7a;hb=965d5409daba88b43bbffb5bed90b58383c0cc3f;hp=6de24ab8bf2aa32a8fb9ea8c7581e4e37075ea5a;hpb=8d691989077a0addcbd840d769dce6700f3d9622;p=yaz-moved-to-github.git diff --git a/zoom/zoom-benchmark.c b/zoom/zoom-benchmark.c index 6de24ab..8e54c0a 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.18 2007-01-04 14:44:34 marc Exp $ * * Asynchronous multi-target client doing search and piggyback retrieval */ @@ -355,7 +355,7 @@ int main(int argc, char **argv) const char *errmsg; const char *addinfo; int error = 0; - int progress = zoom_progress[event]; + //int progress = zoom_progress[event]; if (event == ZOOM_EVENT_SEND_DATA || event == ZOOM_EVENT_RECV_DATA) continue; @@ -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,