[mirrorbrain-commits] [opensuse-svn] r6564 - trunk/tools/download-redirector-v2/mod_mirrorbrain

From: Novell Forge SVN <noreply_at_novell.com>
Date: Tue, 24 Feb 2009 12:17:12 -0700 (MST)
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)
@@ -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.org
Received on 2009-02-24Z19:17:39

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:11 GMT