Commit f756ea58 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Changed the assigner of "Garb busy postponement", "Garb

	timeout", "Sync timeout", "Garb interval", "Sync interval" and
	"Sync retry interval" from int to timeval, and added
	appropriate default suffixes to those configuration
	parameters.
parent 8e55af67
/*
* $Id: server-config.c,v 0.84 2003/07/12 00:19:01 ceder Exp $
* $Id: server-config.c,v 0.85 2003/07/12 21:29:48 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -185,26 +185,31 @@ static const struct parameter parameters[] = {
/* Performance tuning parameters (milliseconds) */
{"Garb busy postponement",
assign_int, NULL, 0, 1, "20",
&param.garb_busy_postponement},
assign_timeval, NULL, 0, 1, "20",
&param.garb_busy_postponement, "milliseconds"},
{"Garb timeout",
assign_int, NULL, 0, 1, "100", &param.garbtimeout},
assign_timeval, NULL, 0, 1, "100", &param.garbtimeout,
"milliseconds"},
{"Sync timeout",
assign_int, NULL, 0, 1, "0", &param.synctimeout},
assign_timeval, NULL, 0, 1, "0", &param.synctimeout,
"milliseconds"},
/* Performance tuning parameters (minutes) */
{"Garb interval",
assign_int, NULL, 0, 1, "1440", &param.garb_interval},
assign_timeval, NULL, 0, 1, "1440", &param.garb_interval,
"minutes"},
{"Permissive sync",
assign_bool, NULL, 0, 1, "off", &param.permissive_sync},
{"Sync interval",
assign_int, NULL, 0, 1, "5", &param.sync_interval},
assign_timeval, NULL, 0, 1, "5", &param.sync_interval,
"minutes"},
{"Sync retry interval",
assign_int, NULL, 0, 1, "1",
&param.sync_retry_interval},
assign_timeval, NULL, 0, 1, "1",
&param.sync_retry_interval,
"minutes"},
{"Saved items per call",
assign_int, NULL, 0, 1, "5",
......
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