diff options
| author | chenzizhan <[email protected]> | 2023-09-13 13:14:40 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-09-13 13:14:40 +0800 |
| commit | b9de4c77ec0f01de539f5cd8456559ea68878068 (patch) | |
| tree | d049644ec53ac231b804729ae1c273d12e97c057 /test/test_exporter_json.cpp | |
| parent | 6e5d010519ac5b2512367e1582f253bc0cc53297 (diff) | |
timestamp breakchangev4.3.0
Diffstat (limited to 'test/test_exporter_json.cpp')
| -rw-r--r-- | test/test_exporter_json.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_exporter_json.cpp b/test/test_exporter_json.cpp index 2b56868..07f7a39 100644 --- a/test/test_exporter_json.cpp +++ b/test/test_exporter_json.cpp @@ -121,7 +121,7 @@ cJSON *test_exporter_extract_results_with_standard_global(const struct fieldstat struct fieldstat_json_exporter *fieldstat_json_exporter = fieldstat_json_exporter_new(instance); fieldstat_json_exporter_set_global_tag(fieldstat_json_exporter, TEST_TAG_GLOBAL, 3); - char *json_string = fieldstat_json_exporter_export(fieldstat_json_exporter); + char *json_string = fieldstat_json_exporter_export(fieldstat_json_exporter, &TEST_TIMEVAL); cJSON *root_arr = cJSON_Parse(json_string); free(json_string); fieldstat_json_exporter_free(fieldstat_json_exporter); @@ -134,7 +134,7 @@ cJSON *test_exporter_extract_results(const struct fieldstat *instance) struct fieldstat_json_exporter *fieldstat_json_exporter = fieldstat_json_exporter_new(instance); // getchar(); - char *json_string = fieldstat_json_exporter_export(fieldstat_json_exporter); + char *json_string = fieldstat_json_exporter_export(fieldstat_json_exporter, &TEST_TIMEVAL); // exit(0); cJSON *root_arr = cJSON_Parse(json_string); free(json_string); |
