Commit b8071a84 authored by Simon Kelley's avatar Simon Kelley

Tweak blockdata accounting.

parent b6e9e7c3
...@@ -24,7 +24,7 @@ static unsigned int blockdata_count = 0, blockdata_hwm = 0; ...@@ -24,7 +24,7 @@ static unsigned int blockdata_count = 0, blockdata_hwm = 0;
void blockdata_report(void) void blockdata_report(void)
{ {
my_syslog(LOG_INFO, _("DNSSEC memory in use %u, max %u"), my_syslog(LOG_INFO, _("DNSSEC memory in use %u, max %u"),
blockdata_count * KEYBLOCK_LEN, blockdata_hwm * KEYBLOCK_LEN); blockdata_count * sizeof(struct blockdata), blockdata_hwm * sizeof(struct blockdata));
} }
struct blockdata *blockdata_alloc(char *data, size_t len) struct blockdata *blockdata_alloc(char *data, size_t len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment