Author: poeml Date: 2009-02-24 12:17:09 -0700 (Tue, 24 Feb 2009) New Revision: 6564 Modified: trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c Log: mod_mirrorbrain: - for logging purposes, distinguish mirrors that are in the same country from mirrors that act as fallback mirrors for the country Modified: trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c =================================================================== --- trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c 2009-02-24 18:37:56 UTC (rev 6563) +++ trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c 2009-02-24 19:17:09 UTC (rev 6564) _at_@ -1839,7 +1839,11 @@ } else if (mirrors_same_country->nelts) { mirrorp = (mirror_entry_t **)mirrors_same_country->elts; chosen = mirrorp[find_lowest_rank(mirrors_same_country)]; - found_in = "country"; + if (strcasecmp(chosen->country_code, country_code) == 0) { + found_in = "country"; + } else { + found_in = "other_country"; + } } else if (mirrors_same_region->nelts) { mirrorp = (mirror_entry_t **)mirrors_same_region->elts; chosen = mirrorp[find_lowest_rank(mirrors_same_region)]; _______________________________________________ Opensuse-svn mailing list Opensuse-svn_at_forge.novell.com http://forge.novell.com/mailman/listinfo/opensuse-svn _______________________________________________ mirrorbrain-commits mailing list Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Tue Feb 24 2009 - 19:17:39 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT