Browse Source

Corrected a dumb error with date calculation

master
Adrien Bourmault 3 months ago
committed by root
parent
commit
d4d966ab19
  1. 4
      captcha/captcha.sh
  2. 4
      captcha/experimental.sh
  3. 4
      rapport_activite/rapport_activites.sh

4
captcha/captcha.sh

@ -70,9 +70,9 @@ INTRUS()
R=$(($R % 100))
if [[ $R -lt 50 ]]; then
echo "Tapez | $NEWINPUT |en supprimant les ${DIGIT[$INTRUS]}"
echo "Tapez ce nombre en enlevant les ${DIGIT[$INTRUS]} | $NEWINPUT"
else
echo "Saisissez | $NEWINPUT |en enlevant les ${DIGIT[$INTRUS]}"
echo "Saisissez ce nombre sans les ${DIGIT[$INTRUS]} | $NEWINPUT"
fi
}

4
captcha/experimental.sh

@ -70,9 +70,9 @@ INTRUS()
R=$(($R % 100))
if [[ $R -lt 50 ]]; then
echo "Tapez | $NEWINPUT |en supprimant les ${DIGIT[$INTRUS]}"
echo "Tapez ce nombre en enlevant les ${DIGIT[$INTRUS]} | $NEWINPUT"
else
echo "Saisissez | $NEWINPUT |en enlevant les ${DIGIT[$INTRUS]}"
echo "Saisissez ce nombre sans les ${DIGIT[$INTRUS]} | $NEWINPUT"
fi
}

4
rapport_activite/rapport_activites.sh

@ -26,7 +26,7 @@ main() {
echo ""
echo "h2. ## Audio/Video Call usage:"
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 "** 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"
@ -107,7 +107,7 @@ get_last_month() {
year="$(($(date +%Y)-1))"
yearMonth="$year-$precedingMonth"
fi
echo "$year-$precedingMonth"
echo $yearMonth
}
get_total_UDP_turn_relayed_data() {

Loading…
Cancel
Save