X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fbenchmark.c;h=3b00f130a2275ce24ef72a90cf33215503c924b0;hp=14db792e3e5b82acda5427d717bf8405e572b8da;hb=a7718c404d9f9317caf075a1d1bbacc1484018a7;hpb=bbede51b2d1b9cf9674e0176d5f536d10f276962 diff --git a/util/benchmark.c b/util/benchmark.c index 14db792..3b00f13 100644 --- a/util/benchmark.c +++ b/util/benchmark.c @@ -1,15 +1,10 @@ -/* $Id: benchmark.c,v 1.9 2005-10-22 13:13:56 adam Exp $ - * Copyright (C) 1995-2005, Index Data ApS - * - * This file is part of the YAZ toolkit. - * - * See the file LICENSE. - * - * This is an elementary benchmarker for server performance. It works - * by repeatedly connecting to, seaching in and retrieving from the - * specified server, and keeps statistics about the minimum, maximum - * and average times for each operation. +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data + * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -52,7 +47,7 @@ int main(int argc, char **argv) int ok; int nok = 0; char *arg; - + while ((c = options("c:s:p:fbd:rv:", argv, argc, &arg)) != -2) { switch (c) { case 0: @@ -139,6 +134,7 @@ static void db_printf(int level, char *fmt, ...) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab