do it elsewhere

This commit is contained in:
Ethan Roseman 2023-02-18 17:52:04 +09:00
parent ab73741109
commit 184e11f61f
No known key found for this signature in database
GPG Key ID: 27F9FCEB8E4969BD

View File

@ -41,11 +41,7 @@ async function fetchData(version) {
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
}
const totalBytes = latest.totalBytes
for (const row of rows) {
row.percentBytes = (row.matchingBytes / totalBytes) * 100