mirror of
https://github.com/pmret/website.git
synced 2024-09-19 15:21:41 +02:00
hack for now for JP so it doesn't so such a high percentage
This commit is contained in:
parent
be18b9479a
commit
ab73741109
@ -40,8 +40,15 @@ async function fetchData(version) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const latest = rows[rows.length - 1]
|
const latest = rows[rows.length - 1]
|
||||||
|
|
||||||
|
let totalBytes = latest.totalBytes
|
||||||
|
// TODO hack for JP since we haven't mapped all the segments
|
||||||
|
if (version !== "us") {
|
||||||
|
totalBytes = 3718668
|
||||||
|
}
|
||||||
|
|
||||||
for (const row of rows) {
|
for (const row of rows) {
|
||||||
row.percentBytes = (row.matchingBytes / latest.totalBytes) * 100
|
row.percentBytes = (row.matchingBytes / totalBytes) * 100
|
||||||
}
|
}
|
||||||
|
|
||||||
return rows
|
return rows
|
||||||
|
Loading…
Reference in New Issue
Block a user