Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions static/madmin/static/js/madmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ new Vue({
mons: 67
}
},
cellUpdateTimeout: 50000
cellUpdateTimeout: 168
}
},
computed: {
Expand Down Expand Up @@ -1017,8 +1017,8 @@ new Vue({
delete leaflet_data.cellupdates[id];
}
}
// 86400
if($this.settings.cellUpdateTimeout > 0 && now - cell.updated > $this.settings.cellUpdateTimeout) {
// cellUpdateTimeout is in hours, so we gotta adjust by 3600 to get seconds
if($this.settings.cellUpdateTimeout > 0 && now - cell.updated > (3600 * $this.settings.cellUpdateTimeout)) {
notTooOld = false;
}

Expand Down
6 changes: 6 additions & 0 deletions static/madmin/templates/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ <h1 class="leaflet-sidebar-header bg-dark">Settings<div class="leaflet-sidebar-c
<div class="custom-control custom-switch">
<input id="questcoordinateradius" type="number" v-model="settings.routes.coordinateRadius.quests" max="1100" class="form-control form-control-sm" />
</div>
</li>
<li class="list-group-item layer-item d-flex">
<div class="flex-grow-1">Draw cells scanned this recent (hours)</div>
<div class="custom-control custom-switch">
<input id="cellupdatetimelimit" type="number" v-model="settings.cellUpdateTimeout" max="99900" class="form-control form-control-sm" />
</div>
</li>
<li class="list-group-item layer-item d-flex">
<div class="flex-grow-1">Map tiles</div>
Expand Down