[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian JP master SVN www commits (rev.1052)



=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 1052
  Commiter: kmuto
      Date: 2010-06-03 15:10:12 +0900 (木, 03  6月 2010)
=======================================================
Log:

support NA

=======================================================
Changed:

U   cdn/trunk/gae-surrogates.rb

Modified: cdn/trunk/gae-surrogates.rb
===================================================================
--- cdn/trunk/gae-surrogates.rb	2010-06-03 05:24:08 UTC (rev 1051)
+++ cdn/trunk/gae-surrogates.rb	2010-06-03 06:10:12 UTC (rev 1052)
@@ -59,6 +59,19 @@
       addr[country][hostname] = Array.new
     end
     addr[country][hostname].push([hs['ip'].split('.').map{|x| x.to_i}, hs['preference']])
+
+    continent = hs['continent']
+    if addr[continent]
+    else
+      addr[continent] = Hash.new
+    end
+    
+    if addr[continent][hostname]
+    else
+      addr[continent][hostname] = Array.new
+    end
+    addr[continent][hostname].push([hs['ip'].split('.').map{|x| x.to_i}, hs['preference']])
+
   end
 
   addrfile = File.open("addr", 'w')