From: Brendan O'Dea Date: Mon, 13 Dec 2004 05:27:19 +0000 (+0000) Subject: defer shutdown counters for a minute after normal acct dump X-Git-Tag: 2.2.1-2fdn3.1~19^2^2~1^2~275 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/d4191490e74cf2b6cc523eebceab67b5589f616f defer shutdown counters for a minute after normal acct dump --- diff --git a/l2tpns.c b/l2tpns.c index aed42dd..bfa7545 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4,7 +4,7 @@ // Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced // vim: sw=8 ts=8 -char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.67 2004-12-13 05:20:39 bodea Exp $"; +char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.68 2004-12-13 05:27:19 bodea Exp $"; #include #include @@ -2206,6 +2206,7 @@ static int regular_cleanups(void) { // Dump accounting data next_acct = TIME + ACCT_TIME; + next_shut_acct = TIME + ACCT_SHUT_TIME; dump_acct_info(1); } else if (next_shut_acct <= TIME)