diff options
| author | chenzizhan <[email protected]> | 2023-05-30 15:01:36 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-05-30 15:01:36 +0800 |
| commit | 9508f5d8d4aca576946dc82c269ba8e8013a05ac (patch) | |
| tree | 7eeaa977b679f4f5a9c83550dbad9a93193a8705 /src/fieldstat.cpp | |
| parent | 87ed25f469033eb8f636f2f1b4999540a93172a8 (diff) | |
try ciczz-dev3-hk
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; |
