X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fbenchmark.c;h=3b00f130a2275ce24ef72a90cf33215503c924b0;hp=0119dc82ae1a9dd781d17377ae505e8ade9eb003;hb=dc86a5103817732735d2591d3775114a86de94ae;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/util/benchmark.c b/util/benchmark.c index 0119dc8..3b00f13 100644 --- a/util/benchmark.c +++ b/util/benchmark.c @@ -1,15 +1,10 @@ -/* $Id: benchmark.c,v 1.10 2007-01-03 08:42:16 adam Exp $ - * Copyright (C) 1995-2007, 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