Authored by Rong

add by shell

@@ -24,8 +24,8 @@ function exeInfluxdb(){ @@ -24,8 +24,8 @@ function exeInfluxdb(){
24 function uploadLoadInfo(){ 24 function uploadLoadInfo(){
25 v1=$(cat ${GOR_LOG_PATH} | grep output_http | tail -n 1 | awk -F ',' '{print $2}') 25 v1=$(cat ${GOR_LOG_PATH} | grep output_http | tail -n 1 | awk -F ',' '{print $2}')
26 v2=$(cat ${GOR_LOG_PATH} | grep output_http | tail -n 1 | awk -F ',' '{print $5}') 26 v2=$(cat ${GOR_LOG_PATH} | grep output_http | tail -n 1 | awk -F ',' '{print $5}')
27 - exeInfluxdbStr="${IP}.${TC_NAME}.ok.count value=${v1}  
28 -${IP}.${TC_NAME}.ok.pct90 value=${v2}" 27 + exeInfluxdbStr="${IP}.${TC_NAME}.ok.count value=${v2}
  28 +${IP}.${TC_NAME}.ok.pct90 value=${v1}"
29 exeInfluxdb "$exeInfluxdbStr" 29 exeInfluxdb "$exeInfluxdbStr"
30 } 30 }
31 31