Commit 984070a4 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Added "Saved items per call".

(read_configuration): Check that param.saved_items_per_call is at least 1.
parent 3653bd03
/*
* $Id: server-config.c,v 0.66 1999/06/13 19:41:30 ceder Exp $
* $Id: server-config.c,v 0.67 1999/06/19 18:10:19 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -37,7 +37,7 @@
#endif
static const char *
rcsid = "$Id: server-config.c,v 0.66 1999/06/13 19:41:30 ceder Exp $";
rcsid = "$Id: server-config.c,v 0.67 1999/06/19 18:10:19 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -191,8 +191,15 @@ static const struct parameter parameters[] = {
assign_bool, NULL, 0, 1, "off", &param.permissive_sync},
{"Sync interval",
assign_int, NULL, 0, 1, "5", &param.sync_interval},
{"Sync retry interval",
assign_int, NULL, 0, 1, "1", &param.sync_retry_interval},
assign_int, NULL, 0, 1, "1",
&param.sync_retry_interval},
{"Saved items per call",
assign_int, NULL, 0, 1, "5",
&param.saved_items_per_call},
/* More performance tuning. */
......@@ -519,6 +526,13 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.savecore_path);
}
if (param.saved_items_per_call < 1)
{
err = TRUE;
kom_log("Parameter '%s' must be at least 1.\n",
param_name(&param.saved_items_per_call));
}
/* FIXME///+++ Check config parameters for sanity */
if (err)
......
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