X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frecstat.c;h=e6395929a8b5a99b63a88493b2d5e6810f259a52;hb=0113b6aaf2c27d960591e7087785123f16a235f3;hp=aa1ff6507ee37fe784d77d44953afd87a7bfc811;hpb=226fb73f42a86cc30ff4f27eb452ab3f6c19ae01;p=idzebra-moved-to-github.git diff --git a/index/recstat.c b/index/recstat.c index aa1ff65..e639592 100644 --- a/index/recstat.c +++ b/index/recstat.c @@ -1,10 +1,27 @@ /* - * Copyright (C) 1994-1995, Index Data I/S + * Copyright (C) 1994-1998, Index Data I/S * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: recstat.c,v $ - * Revision 1.1 1995-12-06 12:41:26 adam + * Revision 1.6 1998-01-12 15:04:08 adam + * The test option (-s) only uses read-lock (and not write lock). + * + * Revision 1.5 1997/09/17 12:19:17 adam + * Zebra version corresponds to YAZ version 1.4. + * Changed Zebra server so that it doesn't depend on global common_resource. + * + * Revision 1.4 1997/09/09 13:38:08 adam + * Partial port to WIN95/NT. + * + * Revision 1.3 1996/06/04 10:19:00 adam + * Minor changes - removed include of ctype.h. + * + * Revision 1.2 1996/05/14 14:04:34 adam + * In zebraidx, the 'stat' command is improved. Statistics about ISAM/DICT + * is collected. + * + * Revision 1.1 1995/12/06 12:41:26 adam * New command 'stat' for the index program. * Filenames can be read from stdin by specifying '-'. * Bug fix/enhancement of the transformation from terms to regular @@ -14,16 +31,14 @@ #include #include #include -#include -#include #include +#ifndef WINDOWS #include - +#endif #include "recindxp.h" -void rec_prstat (void) +void rec_prstat (Records records) { - Records records = rec_open (0); int i; int total_bytes = 0; @@ -47,5 +62,4 @@ void rec_prstat (void) records->head.total_bytes); logf (LOG_LOG, "Total size with overhead %8d", total_bytes); - rec_close (&records); }