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/file_output.cpp | |
| parent | 87ed25f469033eb8f636f2f1b4999540a93172a8 (diff) | |
try ciczz-dev3-hk
Diffstat (limited to 'src/file_output.cpp')
| -rw-r--r-- | src/file_output.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_output.cpp b/src/file_output.cpp index 5165155..8697856 100644 --- a/src/file_output.cpp +++ b/src/file_output.cpp @@ -789,7 +789,8 @@ void output_file_type_topk_default(struct fieldstat_instance *instance, int curr // default int size = 10000 * metric_num; - char print_buf[size] = ""; + char print_buf[size]; + memset(print_buf, 0, size); int used_len = 0; const char *header[TOPK_COLUMN_NUM] = {"rank", "key", NULL}; @@ -813,7 +814,6 @@ void output_file_type_topk_default(struct fieldstat_instance *instance, int curr int file_output(struct fieldstat_instance *instance,long long interval_ms) { - printf("enter file_output\n"); int used_len = 0; int current_table_cnt = 0; int current_metric_cnt = 0; |
