1
0
mirror of https://github.com/tormachris/cf-workers-status-page.git synced 2025-09-21 16:35:15 +02:00

feat: collect avg response time by default

This commit is contained in:
Adam Janiš
2021-01-19 00:18:32 +01:00
parent 1439b67c30
commit 6d08f47d1d
6 changed files with 66 additions and 30 deletions

View File

@ -0,0 +1,17 @@
const locations = {
WAW: 'Warsaw',
SCL: 'Santiago de Chile',
MEL: 'Melbourne',
SIN: 'Singapore',
}
export default function MonitorDayAverage({ location, avg }) {
return (
<>
<br />
<small>
{locations[location] || location}: {avg}ms
</small>
</>
)
}