defer shutdown counters for a minute after normal acct dump
This commit is contained in:
parent
caec470497
commit
9261b46e2d
1 changed files with 2 additions and 1 deletions
3
l2tpns.c
3
l2tpns.c
|
|
@ -4,7 +4,7 @@
|
||||||
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
||||||
// vim: sw=8 ts=8
|
// 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 <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
@ -2206,6 +2206,7 @@ static int regular_cleanups(void)
|
||||||
{
|
{
|
||||||
// Dump accounting data
|
// Dump accounting data
|
||||||
next_acct = TIME + ACCT_TIME;
|
next_acct = TIME + ACCT_TIME;
|
||||||
|
next_shut_acct = TIME + ACCT_SHUT_TIME;
|
||||||
dump_acct_info(1);
|
dump_acct_info(1);
|
||||||
}
|
}
|
||||||
else if (next_shut_acct <= TIME)
|
else if (next_shut_acct <= TIME)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue