Browse Source

increased default refresh delays

and made php player expired time more readable
master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
55a2507d63
  1. 4
      chunkymap-regen.py
  2. 5
      web/chunkymap.php

4
chunkymap-regen.py

@ -312,8 +312,8 @@ class MTChunks:
self.website_root="/var/www/html/minetest" self.website_root="/var/www/html/minetest"
self.world_name = "FCAGameAWorld" self.world_name = "FCAGameAWorld"
self.os_name="linux" self.os_name="linux"
self.refresh_map_seconds = 10 self.refresh_map_seconds = 299
self.refresh_players_seconds = 3 self.refresh_players_seconds = 29
input_string = "" input_string = ""
if (os.path.sep!="/"): if (os.path.sep!="/"):

5
web/chunkymap.php

@ -406,8 +406,9 @@ function echo_chunkymap_table() {
$zoomed_h=(int)((float)$chunkymap_tile_original_h*$scale+.5); $zoomed_h=(int)((float)$chunkymap_tile_original_h*$scale+.5);
$genresult_suffix_then_dot_then_ext="_mapper_result.txt"; $genresult_suffix_then_dot_then_ext="_mapper_result.txt";
$dot_yaml=".yml"; $dot_yaml=".yml";
$player_file_age_expired_max_seconds=20*60-1; $minute=60;
$player_file_age_idle_max_seconds=5*60-1; $player_file_age_expired_max_seconds=20*$minute-1;
$player_file_age_idle_max_seconds=5*$minute-1;
while ($z >= $chunkz_min) { while ($z >= $chunkz_min) {
echo_hold( " <tr>\r\n"); echo_hold( " <tr>\r\n");
$x = (int)$chunkx_min; $x = (int)$chunkx_min;

Loading…
Cancel
Save