forked from MapComplete/MapComplete
Fix: actually show recent graphs
This commit is contained in:
parent
c5aac6962d
commit
ca1589d0de
1 changed files with 8 additions and 3 deletions
|
@ -430,8 +430,10 @@
|
|||
setTrafficLight(all.data)
|
||||
})
|
||||
|
||||
let now = Math.round(new Date().getTime() / 60000) * 60
|
||||
let oneDayAgo = now - 2 * 24 * 60 * 60
|
||||
let now = Math.round(new Date().getTime() / 1000)
|
||||
let twoDaysAgo = now - 2 * 24 * 60 * 60
|
||||
let lastHour = now - 60 * 60
|
||||
|
||||
</script>
|
||||
|
||||
<h1>MapComplete status indicators</h1>
|
||||
|
@ -461,7 +463,10 @@
|
|||
</a>
|
||||
<img
|
||||
style="width: 80rem"
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${oneDayAgo},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`} />
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${twoDaysAgo},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`} />
|
||||
<img
|
||||
style="width: 80rem"
|
||||
src={`https://munin.openstreetmap.fr/munin-cgi/munin-cgi-graph/osm37.openstreetmap.fr/blur.vm.openstreetmap.fr/nvidia_gpu_power-pinpoint=${lastHour},${now}.png?&lower_limit=&upper_limit=&size_x=800&size_y=400`} />
|
||||
<button
|
||||
on:click={() => {
|
||||
fetch(Constants.ErrorReportServer, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue