diff --git a/rapport_activite/rapport_activites.sh b/rapport_activite/rapport_activites.sh index 9b3ab06..17646a5 100755 --- a/rapport_activite/rapport_activites.sh +++ b/rapport_activite/rapport_activites.sh @@ -138,7 +138,7 @@ get_total_TLS_turn_relayed_data() { } get_max_UDP_turn_relayed_data() { - n=$(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Relayed" | grep "UDP" | cut -d" " -f6-6 | sort | tail -n 1) + n=$(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Relayed" | grep "UDP" | cut -d" " -f6-6 | sort -g | tail -n 1) if [ -z $n ]; then echo 0 else @@ -147,7 +147,7 @@ get_max_UDP_turn_relayed_data() { } get_max_TCP_turn_relayed_data() { - n=$(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Relayed" | grep "TCP" | cut -d" " -f6-6 | sort | tail -n 1) + n=$(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Relayed" | grep "TCP" | cut -d" " -f6-6 | sort -g | tail -n 1) if [ -z $n ]; then echo 0 else @@ -156,7 +156,7 @@ get_max_TCP_turn_relayed_data() { } get_max_TLS_turn_relayed_data() { - n=$(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Relayed" | grep "TLS" | cut -d" " -f6-6 | sort | tail -n 1) + n=$(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Relayed" | grep "TLS" | cut -d" " -f6-6 | sort -g | tail -n 1) if [ -z $n ]; then echo 0 else