Commit c7725e02 authored by Martyn Russell's avatar Martyn Russell

libtracker-miner: Renamed internal define TRACKER_MAX_TIMEOUT_INTERVAL

Use _CRAWLER_ in there so we know where it comes from.
parent db5294b6
......@@ -1200,7 +1200,7 @@ tracker_crawler_set_throttle (TrackerCrawler *crawler,
if (crawler->priv->idle_id != 0) {
guint interval, idle_id;
interval = TRACKER_MAX_TIMEOUT_INTERVAL * crawler->priv->throttle;
interval = TRACKER_CRAWLER_MAX_TIMEOUT_INTERVAL * crawler->priv->throttle;
g_source_remove (crawler->priv->idle_id);
......
......@@ -39,7 +39,7 @@ G_BEGIN_DECLS
#define TRACKER_CRAWLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_CRAWLER, TrackerCrawlerClass))
/* Max timeouts time (in msec) */
#define TRACKER_MAX_TIMEOUT_INTERVAL 1000
#define TRACKER_CRAWLER_MAX_TIMEOUT_INTERVAL 1000
typedef struct TrackerCrawler TrackerCrawler;
typedef struct TrackerCrawlerClass TrackerCrawlerClass;
......
......@@ -19,11 +19,7 @@
#include "config.h"
#include <libtracker-common/tracker-date-time.h>
#include <libtracker-common/tracker-dbus.h>
#include <libtracker-common/tracker-file-utils.h>
#include <libtracker-common/tracker-log.h>
#include <libtracker-common/tracker-utils.h>
#include <libtracker-common/tracker-common.h>
#include "tracker-crawler.h"
#include "tracker-miner-fs.h"
......@@ -2612,7 +2608,7 @@ _tracker_idle_add (TrackerMinerFS *fs,
{
guint interval;
interval = TRACKER_MAX_TIMEOUT_INTERVAL * fs->priv->throttle;
interval = TRACKER_CRAWLER_MAX_TIMEOUT_INTERVAL * fs->priv->throttle;
if (interval == 0) {
return g_idle_add_full (TRACKER_TASK_PRIORITY, func, user_data, NULL);
......
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