From: alpha-ninja Date: Mon, 4 Aug 2014 11:14:07 +0000 (+0200) Subject: Distribute load evenly X-Git-Tag: producution~27^2^2 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=5ed2937e97f24b9d9aeadf65e2d2a0d37872ff31;p=lantea.git Distribute load evenly The second factor was incorrect for both. --- diff --git a/js/map.js b/js/map.js index ec9a05c..cd9eddd 100644 --- a/js/map.js +++ b/js/map.js @@ -1094,8 +1094,8 @@ var gTileService = { .replace("{x}", norm.x) .replace("{y}", norm.y) .replace("{z}", norm.z) - .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 2))) - .replace("[1-4]", 1 + Math.floor(Math.random() * 3)), + .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 3))) + .replace("[1-4]", 1 + Math.floor(Math.random() * 4)), true); XHR.responseType = "blob"; XHR.addEventListener("load", function () {