Skip to content
Snippets Groups Projects
Commit eab66a8b authored by edileuton's avatar edileuton
Browse files

agent: Fix network usage xml


Signed-off-by: default avataredileuton <edileuton@gmail.com>
parent 35abaea2
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ function xml_print() ...@@ -43,7 +43,7 @@ function xml_print()
printf "<id>$((COUNT+1))</id>" printf "<id>$((COUNT+1))</id>"
printf "<rx>" printf "<rx>"
printf "<rx-packets>$(awk '{ print $2 }' <<< $line)</rx-packets>" printf "<rx-packets>$(awk '{ print $2 }' <<< $line)</rx-packets>"
printf "<rx-bytes>\"$(awk '{ print $3 }' <<< $line)</rx-bytes>" printf "<rx-bytes>$(awk '{ print $3 }' <<< $line)</rx-bytes>"
printf "</rx>" printf "</rx>"
printf "<tx>" printf "<tx>"
printf "<tx-packets>$(awk '{ print $4 }' <<< $line)</tx-packets>" printf "<tx-packets>$(awk '{ print $4 }' <<< $line)</tx-packets>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment