diff options
| author | chenzizhan <[email protected]> | 2023-09-25 17:53:39 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-09-25 17:53:39 +0800 |
| commit | be83e16f85e34d2bef6752bac1284d65c904ec0d (patch) | |
| tree | aad6e256f2485996d3b789c658c1dc097b520ade /test/test_exporter_json.cpp | |
| parent | 6a6ef0f39ea4390fc6512b573fdf5667bdfe2426 (diff) | |
metric has hole, new merge with master
Diffstat (limited to 'test/test_exporter_json.cpp')
| -rw-r--r-- | test/test_exporter_json.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_exporter_json.cpp b/test/test_exporter_json.cpp index 13e6b5d..8da6c8b 100644 --- a/test/test_exporter_json.cpp +++ b/test/test_exporter_json.cpp @@ -165,10 +165,10 @@ void topk_standard_oper(const std::function<void(Fieldstat_tag_list_wrapper *, u void topk_init(struct fieldstat *instance, unsigned int test_expected_big_count) { - const char *field_name[TEST_METRIC_NUM] = {"topk1", "topk2"}; + const char *metric_name[TEST_METRIC_NUM] = {"topk1", "topk2"}; int cube_id = fieldstat_register_cube(instance, TEST_TAG_SHARED1, 3, SAMPLING_MODE_TOPK, TEST_TOPK_STANDARD_K); - int m1 = fieldstat_register_counter(instance, cube_id, field_name[0], COUNTER_MERGE_BY_SUM); - int m2 = fieldstat_register_counter(instance, cube_id, field_name[1], COUNTER_MERGE_BY_SUM); + int m1 = fieldstat_register_counter(instance, cube_id, metric_name[0], COUNTER_MERGE_BY_SUM); + int m2 = fieldstat_register_counter(instance, cube_id, metric_name[1], COUNTER_MERGE_BY_SUM); std::function<void(Fieldstat_tag_list_wrapper *, unsigned int *)> topk_add = [instance, cube_id, m1, m2]( const Fieldstat_tag_list_wrapper *my_tags, unsigned int counts[TEST_METRIC_NUM]) { |
