Re: [Tracker] add one feature to query tracker daemon's busy/idle status
- From: jerry tan <Jerry Tan Sun COM>
- To: jamie <jamiemcc blueyonder co uk>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] add one feature to query tracker daemon's busy/idle status
- Date: Mon, 02 Jul 2007 22:00:38 +0800
so when tracker->file_process_queue is not empty, and pending table is
not empty,
track daemon is busy, right?
On Fri, 2007-06-29 at 10:56 +0800, Jerry Tan wrote:
This patch add one API to tracker client,
so it is easy to query tracker daemon's busy/idle status by call it.
for example, a desktop applet can show different icons when tracker
daemon is busy or idle.
its not quite right
the queue length can be zero and tracker can still be indexing. Also we
overflow large queues into a temp table to preserve RAM (you will see it
called as pending files in the code) so it can be zero but still have a
large number of pending files
you really need to check for the file process thread to be sleeping
instead and set a suitable variable. There is a tracker->status variable
already in the code in trackerd.c to track the various states but its
not used anywhere so I dont know if its up to date
everything else looks ok so feel free to send an update
thanks
jamie
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]