[Freeciv-Dev] (PR#6911) cleanup of cache stats reporting in cm.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#6911) cleanup of cache stats reporting in cm.c |
From: |
"Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx> |
Date: |
Thu, 20 Nov 2003 07:55:55 -0800 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=6911 >
Backgrounder: the CMA code collects statistics on how often its caches
scored a hit or miss. Those statistics are printed or not based on some
#defines which default to FALSE.
This patch does two things: for one it clean up the code with respect to
reporting cache stats in the CMA by putting all of the data for them
into the same struct rather than strewn about various different structs.
This allows removing some cut & paste code in report_stats.
The other thing is that it fixes some bit-rot in report_stats:
apparently no one's changed those #define to TRUE anytime recently.
The usefulness of this patch will become more clear when I submit
another patch (in a few minutes) which stores caches for each city.
cm.unite_cache_stats.patch
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#6911) cleanup of cache stats reporting in cm.c,
Benoit Hudson <=
|
|