diff options
| author | lijia <[email protected]> | 2021-01-13 18:18:16 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2021-01-13 18:18:16 +0800 |
| commit | 2622066394444005663f0effdfc673b0b40b5e7e (patch) | |
| tree | eaae6982a57119989925e3a6303390b5e17a27f5 | |
| parent | 9eaec095c5c7de7e1e6acc48de2aff99b2a26ae4 (diff) | |
sysinfo.log显示收到数据总量的单位是byte而不是bit.v4.2.24
| -rw-r--r-- | src/packet_io/packet_io_status.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/packet_io/packet_io_status.cpp b/src/packet_io/packet_io_status.cpp index 9e8c858..51041fc 100644 --- a/src/packet_io/packet_io_status.cpp +++ b/src/packet_io/packet_io_status.cpp @@ -196,7 +196,7 @@ static void sysinfo_output_per_layer_stat(FILE *fp) } fprintf(fp,"******************************************************************************************************************\n"); - fprintf(fp,"*************** protocol count statistics matrix ****************\n"); + fprintf(fp,"************* protocol count statistics matrix (number) *************\n"); fprintf(fp,"%-10s %12s %12s %12s %12s %12s %12s %12s %12s\n","PROTO", "Layer0", "Layer1","Layer2", "Layer3","Layer4","Layer5","Layer6","Layer7"); @@ -214,13 +214,13 @@ static void sysinfo_output_per_layer_stat(FILE *fp) sum_count_per_layer[layer_type][4], sum_count_per_layer[layer_type][5], sum_count_per_layer[layer_type][6], sum_count_per_layer[layer_type][7]); } - fprintf(fp,"\n************** protocol length statistics matrix ****************\n"); + fprintf(fp,"\n*********** protocol length statistics matrix (bytes) *************\n"); fprintf(fp,"%-10s %12s %12s %12s %12s %12s %12s %12s %12s\n","PROTO", "Layer0", "Layer1","Layer2", "Layer3","Layer4","Layer5","Layer6","Layer7"); for(layer_type = 1; layer_type < (int)__ADDR_TYPE_MAX; layer_type++){ stat_sum = 0; for(layer_num = 0; layer_num < SAPP_SUPPORT_LAYER_NUM_MAX; layer_num++){ stat_sum += sum_length_per_layer[layer_type][layer_num]; - byte_convert_human(sum_length_per_layer[layer_type][layer_num], 1, 8, layer_length_human_str[layer_num]); + byte_convert_human(sum_length_per_layer[layer_type][layer_num], 1, 1, layer_length_human_str[layer_num]); /* �ܼ��ֽ���, �˴���������������, ���ܳ���8 */ } if(0 == stat_sum){ continue; /* ����ȫ��0�IJ�Ͳ���ʾ�� */ |
