Corrected a dumb error with date calculation
This commit is contained in:
parent
7dac59df10
commit
d4d966ab19
@ -70,9 +70,9 @@ INTRUS()
|
|||||||
R=$(($R % 100))
|
R=$(($R % 100))
|
||||||
|
|
||||||
if [[ $R -lt 50 ]]; then
|
if [[ $R -lt 50 ]]; then
|
||||||
echo "Tapez | $NEWINPUT |en supprimant les ${DIGIT[$INTRUS]}"
|
echo "Tapez ce nombre en enlevant les ${DIGIT[$INTRUS]} | $NEWINPUT"
|
||||||
else
|
else
|
||||||
echo "Saisissez | $NEWINPUT |en enlevant les ${DIGIT[$INTRUS]}"
|
echo "Saisissez ce nombre sans les ${DIGIT[$INTRUS]} | $NEWINPUT"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,9 +70,9 @@ INTRUS()
|
|||||||
R=$(($R % 100))
|
R=$(($R % 100))
|
||||||
|
|
||||||
if [[ $R -lt 50 ]]; then
|
if [[ $R -lt 50 ]]; then
|
||||||
echo "Tapez | $NEWINPUT |en supprimant les ${DIGIT[$INTRUS]}"
|
echo "Tapez ce nombre en enlevant les ${DIGIT[$INTRUS]} | $NEWINPUT"
|
||||||
else
|
else
|
||||||
echo "Saisissez | $NEWINPUT |en enlevant les ${DIGIT[$INTRUS]}"
|
echo "Saisissez ce nombre sans les ${DIGIT[$INTRUS]} | $NEWINPUT"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ main() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "h2. ## Audio/Video Call usage:"
|
echo "h2. ## Audio/Video Call usage:"
|
||||||
echo ""
|
echo ""
|
||||||
echo "* Number of calls relayed: $(zgrep $DATE /var/log/ejabberd/ejabberd.log* | grep -i -e "Offering stun" | wc -l)"
|
echo "* Number of calls relayed: $(zgrep "$DATE" /var/log/ejabberd/ejabberd.log* | grep -i -e "Offering stun" | wc -l)"
|
||||||
echo "* Data relayed per protocol per call:"
|
echo "* Data relayed per protocol per call:"
|
||||||
echo "** UDP: avg $(get_avg_UDP_turn_relayed_data) KiB, max $(get_max_UDP_turn_relayed_data) KiB, total $(get_total_UDP_turn_relayed_data) KiB"
|
echo "** UDP: avg $(get_avg_UDP_turn_relayed_data) KiB, max $(get_max_UDP_turn_relayed_data) KiB, total $(get_total_UDP_turn_relayed_data) KiB"
|
||||||
echo "** TCP: avg $(get_avg_TCP_turn_relayed_data) KiB, max $(get_max_TCP_turn_relayed_data) KiB, total $(get_total_TCP_turn_relayed_data) KiB"
|
echo "** TCP: avg $(get_avg_TCP_turn_relayed_data) KiB, max $(get_max_TCP_turn_relayed_data) KiB, total $(get_total_TCP_turn_relayed_data) KiB"
|
||||||
@ -107,7 +107,7 @@ get_last_month() {
|
|||||||
year="$(($(date +%Y)-1))"
|
year="$(($(date +%Y)-1))"
|
||||||
yearMonth="$year-$precedingMonth"
|
yearMonth="$year-$precedingMonth"
|
||||||
fi
|
fi
|
||||||
echo "$year-$precedingMonth"
|
echo $yearMonth
|
||||||
}
|
}
|
||||||
|
|
||||||
get_total_UDP_turn_relayed_data() {
|
get_total_UDP_turn_relayed_data() {
|
||||||
|
Loading…
Reference in New Issue
Block a user