2 * Copyright (C) 1994-1996, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.2 1996-05-14 14:04:34 adam
8 * In zebraidx, the 'stat' command is improved. Statistics about ISAM/DICT
11 * Revision 1.1 1995/12/06 12:41:26 adam
12 * New command 'stat' for the index program.
13 * Filenames can be read from stdin by specifying '-'.
14 * Bug fix/enhancement of the transformation from terms to regular
15 * expressons in the search engine.
27 void rec_prstat (void)
29 Records records = rec_open (0);
35 records->head.no_records);
37 for (i = 0; i< REC_BLOCK_TYPES; i++)
39 logf (LOG_LOG, "Record blocks of size %d",
40 records->head.block_size[i]);
42 " Used/Total/Bytes used %d/%d/%d",
43 records->head.block_used[i], records->head.block_last[i]-1,
44 records->head.block_used[i] * records->head.block_size[i]);
46 records->head.block_used[i] * records->head.block_size[i];
49 "Total size of record index in bytes %8d",
50 records->head.total_bytes);
52 "Total size with overhead %8d", total_bytes);