X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoom-benchmark.c;h=396cb67508ae36f9aca36ae6e80e4c003f54e3da;hp=3cd60c8a4dd115026b59a57e7f2e12495d5a568d;hb=57efcfe71d3485e8f2ddac6008fbbc8183804ac7;hpb=d54bef901afb189baa796a40bd05e95be1bce13e diff --git a/zoom/zoom-benchmark.c b/zoom/zoom-benchmark.c index 3cd60c8..396cb67 100644 --- a/zoom/zoom-benchmark.c +++ b/zoom/zoom-benchmark.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-benchmark.c,v 1.14 2006-09-18 09:40:05 marc 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 */ @@ -110,7 +110,7 @@ void print_events(int *elc, struct event_line_t *els, -void init_statics() +void init_statics(void) { int i; char nullstring[1] = ""; @@ -193,7 +193,7 @@ long time_usec(struct time_type *ptime) return ptime->usec; } -void print_option_error() +void print_option_error(void) { fprintf(stderr, "zoom-benchmark: Call error\n"); fprintf(stderr, "zoom-benchmark -h host:port -q pqf-query " @@ -276,7 +276,7 @@ void read_params(int argc, char **argv, struct parameters_t *p_parameters){ print_option_error(); } -void print_table_header() +void print_table_header(void) { if (parameters.gnuplot) printf("#"); @@ -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,