A little something for load_help

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 05/19/98

Yup, I am on a fix the help file kick today.

You have all heard of the problem with the help files if you have more than two
keywords per help entry (on average).  Well here is a little snippet to help you
track this problem and then go to index_boot():db.c and up the CREATE line for
the help_index_element allocation. (the rec_count*2).
Mine ended up at ((float)rec_count*(float)2.8).
[not taking any chances with variable types here]

add these lines to load_help():db.c

<at the top add this>

   static int num_total=0;
   static int num_uni=0;

<add these lines right before the function ends, outside of any loops.>

   log("Number help entries : %d",num_uni);
   log("Number help keywords: %d",num_total);
   log("Ratio               : %f", (float)num_total/(float)num_uni);
      log("SYSERR: The help table is too small. Tell the coder to increase the
buffer limit!!!!!");
      log("SYSERR: entries: %d keywords: %d ratio: %f",num_uni,num_total,



     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |

This archive was generated by hypermail 2b30 : 12/15/00 PST