Commit 34ace3c5 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Carlos Garnacho

Do not report spurious elapsed times if check_stopped is called when the

2009-02-27  Carlos Garnacho  <carlos@imendio.com>

        * src/tracker-indexer/tracker-indexer.c (check_stopped): Do not report
        spurious elapsed times if check_stopped is called when the indexer is
        in stopped state.

svn path=/trunk/; revision=2987
parent c69ccf4d
2009-02-27 Carlos Garnacho <carlos@imendio.com>
* src/tracker-indexer/tracker-indexer.c (check_stopped): Do not report
spurious elapsed times if check_stopped is called when the indexer is
in stopped state.
2009-02-27 Carlos Garnacho <carlos@imendio.com>
* src/tracker-extract/tracker-extract-jpeg.c (extract_jpeg):
......
......@@ -670,12 +670,17 @@ static void
check_stopped (TrackerIndexer *indexer,
gboolean interrupted)
{
gchar *str;
gdouble seconds_elapsed;
TrackerIndexerState state;
gdouble seconds_elapsed = 0;
gchar *str;
state = indexer->private->state;
/* No more modules to query, we're done */
g_timer_stop (indexer->private->timer);
seconds_elapsed = g_timer_elapsed (indexer->private->timer, NULL);
if ((state & TRACKER_INDEXER_STATE_STOPPED) == 0) {
g_timer_stop (indexer->private->timer);
seconds_elapsed = g_timer_elapsed (indexer->private->timer, NULL);
}
/* Flush remaining items */
schedule_flush (indexer, TRUE);
......
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