From 1490b52a6b96b6a69a0c4fe9e0515dc717425128 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 22 Mar 2012 09:34:34 +0000 Subject: NetSurf options rework (a=vince r=daniels,jmb) svn path=/trunk/netsurf/; revision=13548 --- content/fetch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content/fetch.c') diff --git a/content/fetch.c b/content/fetch.c index 2a91ffef1..8c725af0e 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -278,7 +278,7 @@ struct fetch * fetch_start(nsurl *url, nsurl *referer, /* Not a problem if referer has no scheme */ /* Determine whether to send the Referer header */ - if (option_send_referer && ref_scheme != NULL) { + if (nsoption_bool(send_referer) && ref_scheme != NULL) { /* User permits us to send the header * Only send it if: * 1) The fetch and referer schemes match @@ -389,7 +389,7 @@ void fetch_dispatch_jobs(void) } #endif - while ( all_queued && all_active < option_max_fetchers ) { + while ( all_queued && all_active < nsoption_int(max_fetchers) ) { /*LOG(("%d queued, %d fetching", all_queued, all_active));*/ if (fetch_choose_and_dispatch()) { all_queued--; @@ -426,7 +426,7 @@ bool fetch_choose_and_dispatch(void) int countbyhost; RING_COUNTBYLWCHOST(struct fetch, fetch_ring, countbyhost, queueitem->host); - if (countbyhost < option_max_fetchers_per_host) { + if (countbyhost < nsoption_int(max_fetchers_per_host)) { /* We can dispatch this item in theory */ return fetch_dispatch_job(queueitem); } -- cgit v1.2.3