Istead of checking for date type check for acct-session-time in accounting
authorkkalev <kkalev>
Thu, 5 Sep 2002 19:47:55 +0000 (19:47 +0000)
committerkkalev <kkalev>
Thu, 5 Sep 2002 19:47:55 +0000 (19:47 +0000)
src/modules/rlm_counter/rlm_counter.c

index df64f12..828dfaf 100644 (file)
@@ -549,7 +549,7 @@ static int counter_accounting(void *instance, REQUEST *request)
                free(count_datum.dptr);
        }
 
-       if (count_vp->type == PW_TYPE_DATE) {
+       if (data->count_attr == PW_ACCT_SESSION_TIME) {
                /*
                 *      If session time < diff then the user got in after the
                 *      last reset. So add his session time, otherwise add the