Added the STATS_DURATION script environment variable.

This variable reports the duration of the session in seconds.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-04 11:19:12 +02:00
parent 593ce2c9fa
commit d6583945f9
4 changed files with 9 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ if [ "$REASON" = "connect" ];then
else
iptables -D INPUT -i $DEVICE -j ACCEPT
echo "User '$USERNAME' from '$IP_REAL' disconnected (in: $STATS_BYTES_IN, out: $STATS_BYTES_OUT)."
echo "User '$USERNAME' from '$IP_REAL' disconnected (in: $STATS_BYTES_IN, out: $STATS_BYTES_OUT, time: $STATS_DURATION)."
fi
exit 0