Commit 082dccbd authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dump_statistics): Use param.statistic_name instead of statisticfile.

parent d96c6b17
/*
* $Id: connections.c,v 0.37 1994/10/22 12:09:42 ceder Exp $
* $Id: connections.c,v 0.38 1995/10/07 14:25:48 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static char *rcsid = "$Id: connections.c,v 0.37 1994/10/22 12:09:42 ceder Exp $";
static char *rcsid = "$Id: connections.c,v 0.38 1995/10/07 14:25:48 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -614,13 +614,12 @@ dump_statistics(void)
int i;
time_t now;
FILE *fp;
extern char statisticfile[1024]; /* Defined in ramkomd.c */
if ( (fp = fopen(statisticfile, "a")) == NULL )
if ((fp = fopen(param.statistic_name, "a")) == NULL)
{
log("%s: dump_statistics(): can't open file %s\n",
__FILE__,
statisticfile);
param.statistic_name);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment