On 7/22/07, jamie <[EMAIL PROTECTED]> wrote:
On Thu, 2007-07-19 at 12:28 +0200, Tshepang Lekhonkhobe wrote:
> Hi,
> The logs don't indicate if we actually slept 5 seconds.
>

I changed this so that the log shows no of secs

Please apply this patch instead because the info provided by yours
implies that trackerd won't watch anything before the delay expires,
of which it does. Here's a sample of the stuff it does after claiming
it sleeps and before actually sleeping:

"""
23 Jul 2007, 10:25:12:776 - Registering path
/home/wena/.local/share/applications as belonging to service
Applications
23 Jul 2007, 10:25:12:776 - Registering path
/usr/local/share/applications as belonging to service Applications
23 Jul 2007, 10:25:12:776 - Registering path /usr/share/applications
as belonging to service Applications
23 Jul 2007, 10:25:12:808 - Watching directory
/home/wena/.local/share/applications (total watches = 1)
23 Jul 2007, 10:25:12:811 - Watching directory
/usr/local/share/applications (total watches = 2)
23 Jul 2007, 10:25:12:814 - Watching directory /usr/share/applications
(total watches = 3)
23 Jul 2007, 10:25:12:818 - Watching directory
/usr/share/applications/screensavers (total watches = 4)
23 Jul 2007, 10:25:12:821 - 0 files are pending with count 0
23 Jul 2007, 10:25:12:822 - checking /usr/share/applications for 97 files
23 Jul 2007, 10:25:13:007 - Indexing
/usr/share/applications/tracker-search-tool.desktop with service
Applications and mime unknown (existing)
23 Jul 2007, 10:25:13:266 - updating index for word  with score 10
23 Jul 2007, 10:25:13:371 - updating index for word gtk with score 5
23 Jul 2007, 10:25:13:393 - updating index for word GTK with score -5
23 Jul 2007, 10:25:13:498 - Indexing
/usr/share/applications/tracker-preferences.desktop with service
Applications and mime unknown (existing)
23 Jul 2007, 10:25:13:542 - updating index for word  with score 10
23 Jul 2007, 10:25:13:548 - updating index for word set with score 5
23 Jul 2007, 10:25:13:598 - updating index for word Settings with score -5
23 Jul 2007, 10:25:13:665 - Indexing /usr/share/applications with
service Folders and mime Folder (existing)
23 Jul 2007, 10:25:13:702 - 0 files are pending with count 0
23 Jul 2007, 10:25:13:704 - checking /usr/share/applications for 97 files
23 Jul 2007, 10:25:13:776 - 0 files are pending with count 0
"""

--
my place on the web:
floss-and-misc.blogspot.com
Index: src/trackerd/trackerd.c
===================================================================
--- src/trackerd/trackerd.c	(revision 706)
+++ src/trackerd/trackerd.c	(working copy)
@@ -962,7 +962,7 @@ process_files_thread (void)
 
 								/* sleep for N secs before watching/indexing any of the major services */
 								if (tracker->initial_sleep > 0) {
-									tracker_log ("sleeping for %d secs...", tracker->initial_sleep);
+									tracker_log ("sleeping to prevent slow down of system at boot/login time. Watching and Indexing will resume in %d seconds...", tracker->initial_sleep);
 									g_usleep (tracker->initial_sleep * 1000 * 1000);
 								}
 
@@ -2377,7 +2377,6 @@ main (int argc, char **argv)
 		exit (1);
 	}
 
-	tracker_log ("sleeping to prevent slow down of system at boot/login time. Watching and Indexing will resume in %d seconds...", tracker->initial_sleep);
 	tracker->file_process_thread =  g_thread_create ((GThreadFunc) process_files_thread, NULL, FALSE, NULL);
 
 	g_main_loop_run (tracker->loop);
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to