First you need to change the lngstr enum in anlghea3.h (line 669 in
5.24 distro) to include the new thresholds you are adding. Then make
sure this matches the parts of global.c you changed. This should
automatically update the size of the enum and make the language file
match the expected number of lines.

--

Jeremy Wadsack
Wadsack-Allen Digital Group


Bobby Hitt ([EMAIL PROTECTED]; Saturday, March 01, 2003 2:10 PM):

> Hello,

> Further investigation has determined that somewhere the number of items in
> the uk.lng file for the file size is set, and I can't find it. If I comment
> out the extra items I added, analog works, if I uncomment out even one item,
> analog fails saying that the lang file is too long. A better error message
> is that the number of file size items is incorrect. I've searched the 'C'
> code, and found where the lang file is read for the days of the week and the
> months of the year, then seems to abruptly close. I've written 'C' for years
> and can read code reasonably well, but this escapes me.

> Bobby

> ----- Original Message -----
> From: "Jason Linhart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, March 01, 2003 12:47 PM
> Subject: Re: [analog-help] File Size Report


>> That is the code that does the work, but it works off of an array of
>> threshold values. I think you want sizethresh in globals.c near line
>> 1507. Then you have to find the corresponding label strings in your
>> language file and adjust them also.
>>
>> Jason
>>
>>
>> On 3/1/03 12:21 PM Bobby Hitt ([EMAIL PROTECTED]) wrote:
>>
>> >After spending most of the night looking thru the analog source, I've
> given
>> >up looking where the FILE SIZE code is manipulated. I found one reference
>> >where the SIZE 'z' printed, and that's not where the SIZE output is in my
>> >analog computer formatted output. What I found in cache.c:
>> >
>> > for (i = 0, done = FALSE; !done; i++) {
>> >    if (arraydata[REP_SIZE - FIRST_ARRAYREP][i].reqs > 0)
>> >      fprintf(outf, "z\t%d\t%lu\t%lu\t%lu\t%.0f\n", i,
>> >       arraydata[REP_SIZE - FIRST_ARRAYREP][i].reqs,
>> >       arraydata[REP_SIZE - FIRST_ARRAYREP][i].pages,
>> >       arraydata[REP_SIZE - FIRST_ARRAYREP][i].lastdate,
>> >       arraydata[REP_SIZE - FIRST_ARRAYREP][i].bytes);
>> >    if (arraydata[REP_SIZE - FIRST_ARRAYREP][i].threshold < -0.5)
>> >      done = TRUE;
>> >  }
>> >
>> >doesn't match my output:
>> >
>> >z PpBb 1320 1.101 0 0.000           0
>> >z PpBb 1 0.001 2 0.000    1B-  10B
>> >z PpBb 0 0.000 610 0.000   11B- 100B
>> >z PpBb 51 0.043 2968997 0.031  101B-  1kB
>> >z PpBb 1614 1.346 501130648 5.250   1kB- 10kB
>> >z PpBb 115252 96.089 5110726305 53.541  10kB-100kB
>> >z PpBb 1705 1.422 3916617479 41.032 100kB-  1MB
>> >z PpBb 0 0.000 13940714 0.146   1MB- 10MB
>> >
>> >not even close, so I'm lead to believe that what's being output in
> computer
>> >format is using something entirely different, so I have no idea even
> where
>> >to start looking. I just need to know where it's checked for the
> different
>> >file sizes so I can break out the 10kB to 100kB even further.
>>
>>
>> -----------------
>> [EMAIL PROTECTED]
>> -----------------
>> Dr. Seuss books . . . can be read and enjoyed on several levels. For
>> example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
>> as a searing indictment of the narrow-minded binary counting system.
>>   -- Peter van der Linden, Expert C Programming, Deep C Secrets
>>
>>
>> +------------------------------------------------------------------------
>> |  TO UNSUBSCRIBE from this list:
>> |    http://lists.isite.net/listgate/analog-help/unsubscribe.html
>> |
>> |  Digest version: http://lists.isite.net/listgate/analog-help-digest/
>> |  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
>> |  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
>> +------------------------------------------------------------------------
>>

> +------------------------------------------------------------------------
> |  TO UNSUBSCRIBE from this list:
> |    http://lists.isite.net/listgate/analog-help/unsubscribe.html
> |
> |  Digest version: http://lists.isite.net/listgate/analog-help-digest/
> |  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
> |  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
> +------------------------------------------------------------------------

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to