From 2848fee19d4784b508798b6076df17b6fa57411a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie?= Date: Wed, 29 Apr 2015 11:28:38 +0200 Subject: [PATCH] fix old wrong variable --- plugins/mail/dovecot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mail/dovecot b/plugins/mail/dovecot index 60b73fd9..e5a6d1d1 100755 --- a/plugins/mail/dovecot +++ b/plugins/mail/dovecot @@ -74,11 +74,11 @@ echo -n DISCONNECTS=$(egrep -c '[dovecot]?.*Disconnected' $LOGFILE) CONNECTS=$(egrep -c '[dovecot]?.*Login' $LOGFILE) VALUE=$($EXPR_BIN $CONNECTS - $DISCONNECTS) -if [ -z "$DISCON" ] || [ "$DISCON" -lt 0 ]; then - DISCON=0 +if [ -z "$VALUE" ] || [ "$VALUE" -lt 0 ]; then + VALUE=0 fi echo -en "connected.value " -echo $DISCON +echo $VALUE echo -n ###################### # TLS Logins