svn commit: samba-web r1195 - in trunk/scripts: .
deryck at samba.org
deryck at samba.org
Thu May 29 21:48:38 GMT 2008
Author: deryck
Date: 2008-05-29 21:48:38 +0000 (Thu, 29 May 2008)
New Revision: 1195
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-web&rev=1195
Log:
Don't use the us1 mirror for now due to a slashdotting
issue with that server.
Will be reverted when this passes.
Modified:
trunk/scripts/js_redirect.py
Changeset:
Modified: trunk/scripts/js_redirect.py
===================================================================
--- trunk/scripts/js_redirect.py 2008-05-28 16:05:54 UTC (rev 1194)
+++ trunk/scripts/js_redirect.py 2008-05-29 21:48:38 UTC (rev 1195)
@@ -37,7 +37,8 @@
js.write('<!-- Hide from old browsers\n')
js.write('randomMirror = new Array;\n')
for i in range(len(us_mirrors)):
- js.write('randomMirror[' + str(i) + '] = "' + us_mirrors[i] + '"\n')
+ if 'us1' not in us_mirrors[i]:
+ js.write('randomMirror[' + str(i) + '] = "' + us_mirrors[i] + '"\n')
js.write('\n')
js.write('n = Math.floor(Math.random()*' + str(len(us_mirrors)) + ')\n')
js.write('// end hide -->\n')
More information about the samba-cvs
mailing list