diff options
Diffstat (limited to 'src/fieldstat.cpp')
| -rw-r--r-- | src/fieldstat.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fieldstat.cpp b/src/fieldstat.cpp index 9b411e6..d89ff5a 100644 --- a/src/fieldstat.cpp +++ b/src/fieldstat.cpp @@ -201,7 +201,9 @@ void metric_free(struct metric *metric) { metric->table = NULL; } - free_heavy_keeper(&metric->heavy_keeper); + if (metric->field_type == FIELD_TYPE_TOPK) { + free_heavy_keeper(&metric->heavy_keeper); + } free(metric); @@ -515,7 +517,6 @@ long long hdr_count_le_value(const struct hdr_histogram* h, long long value) void fieldstat_passive_output(struct fieldstat_instance *instance) { - printf("enter fieldstat_passive_output\n"); struct timespec this_output_time; long long interval_ms = 0; int ret = 0; |
