fix cache view

This commit is contained in:
YouROK
2020-12-25 10:19:32 +03:00
parent 404fc6289d
commit fc77fef1b6

View File

@@ -70,7 +70,7 @@ function getCacheMap(cache) {
html += ' piece-loading' html += ' piece-loading'
info += ' ' + (cache.Pieces[i].Size/cache.Pieces[i].Length*100).toFixed(2) + '%' info += ' ' + (cache.Pieces[i].Size/cache.Pieces[i].Length*100).toFixed(2) + '%'
} }
}
cache.Readers.forEach((r,k)=> { cache.Readers.forEach((r,k)=> {
if (i >= r.Start && i <= r.End && i !== r.Reader) if (i >= r.Start && i <= r.End && i !== r.Reader)
html += ' reader-range' html += ' reader-range'
@@ -79,7 +79,6 @@ function getCacheMap(cache) {
info += ' reader' info += ' reader'
} }
}) })
}
html += "' title='" + info + "'></span>" html += "' title='" + info + "'></span>"
} }
return html return html