- if (zh->reg->isamd)
- {
- fprintf (stdout, " Blocks Occur KB Bytes/Entry\n");
- if (zh->reg->isamd->method->debug >0)
- logf(LOG_LOG," Blocks Occur KB Bytes/Entry");
- for (i = 0; i<=SINGLETON_TYPE; i++)
- {
- blocks= isamd_block_used(zh->reg->isamd,i);
- size= isamd_block_size(zh->reg->isamd,i);
- count=stat_info.no_isam_entries[i];
- if (i==SINGLETON_TYPE)
- blocks=size=0;
- if (stat_info.no_isam_entries[i])
- {
- fprintf (stdout, "%c %7d %7d %7d %5.2f\n",
- (i==SINGLETON_TYPE)?('z'):('A'+i),
- blocks,
- count,
- (int) ((1023.0 + (double) blocks * size)/1024),
- ((double) blocks * size)/count);
- if (zh->reg->isamd->method->debug >0)
- logf(LOG_LOG, "%c %7d %7d %7d %5.2f",
- (i==SINGLETON_TYPE)?('z'):('A'+i),
- blocks,
- count,
- (int) ((1023.0 + (double) blocks * size)/1024),
- ((double) blocks * size)/count);
- } /* entries */
- } /* for */
- } /* isamd */
- if ( (zh->reg->isamd) && (zh->reg->isamd->method->debug>0))
- fprintf (stdout, "\n%d words using %d bytes\n",
- stat_info.no_dict_entries, stat_info.no_dict_bytes);