[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Tracker] About "Linux Kernel file notification" support
- From: "Marcus Fritzsch" <fritschy googlemail com>
- To: jamie <jamiemcc blueyonder co uk>
- Cc: Tracker-List <tracker-list gnome org>
- Subject: Re: [Tracker] About "Linux Kernel file notification" support
- Date: Sun, 15 Jul 2007 23:46:26 +0200
Ah, still one thing,
when testing a faster startup would be nice, here's a mini patch
(again) for a new command line switch -s|--initial-sleep <int> which
does exactly this --- it also allows for a zero sleep ;).
Kind regards, Marcus
diff --git a/src/trackerd/trackerd.c b/src/trackerd/trackerd.c
index 326c63f..b3f3163 100644
--- a/src/trackerd/trackerd.c
+++ b/src/trackerd/trackerd.c
@@ -141,6 +141,7 @@ static gboolean reindex = FALSE;
static gboolean low_memory, enable_evolution, enable_thunderbird, enable_kmail;
static int throttle = 0;
static int verbosity = 0;
+static int initial_sleep = -1; /* >= 0 is valid and will be set */
static GOptionEntry entries[] = {
{"exclude-dir", 'e', 0, G_OPTION_ARG_STRING_ARRAY, &no_watch_dirs, N_("Directory to exclude from indexing"), N_("/PATH/DIR")},
@@ -149,6 +150,7 @@ static GOptionEntry entries[] = {
{"verbosity", 'v', 0, G_OPTION_ARG_INT, &verbosity, N_("Value that controls the level of logging. Valid values are 0 (displays/logs only errors), 1 (minimal), 2 (detailed), and 3 (debug)"), N_("VALUE") },
{"throttle", 't', 0, G_OPTION_ARG_INT, &throttle, N_("Value to use for throttling indexing. Value must be in range 0-20 (default 0) with lower values increasing indexing speed"), N_("VALUE") },
{"low-memory", 'm', 0, G_OPTION_ARG_NONE, &low_memory, N_("Minimizes the use of memory but may slow indexing down"), NULL },
+ {"initial-sleep", 's', 0, G_OPTION_ARG_INT, &initial_sleep, N_("Initial sleep time, just before indexing, in seconds"), NULL },
{"language", 'l', 0, G_OPTION_ARG_STRING, &language, N_("Language to use for stemmer and stop words list (ISO 639-1 2 characters code)"), N_("LANG")},
{"reindex", 'R', 0, G_OPTION_ARG_NONE, &reindex, N_("Force a re-index of all content"), NULL },
{NULL}
@@ -2238,6 +2240,10 @@ main (int argc, char **argv)
tracker->verbosity = verbosity;
}
+ if (initial_sleep >= 0) {
+ tracker->initial_sleep = initial_sleep;
+ }
+
sanity_check_option_values ();
/* set thread safe DB connection */
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]