From fc77fef1b62bbcb7d43e03ea281d7aa9ea38c114 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Fri, 25 Dec 2020 10:19:32 +0300 Subject: [PATCH] fix cache view --- web/src/components/DialogCacheInfo.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/web/src/components/DialogCacheInfo.js b/web/src/components/DialogCacheInfo.js index 3448e15..7202549 100644 --- a/web/src/components/DialogCacheInfo.js +++ b/web/src/components/DialogCacheInfo.js @@ -70,16 +70,15 @@ function getCacheMap(cache) { html += ' piece-loading' info += ' ' + (cache.Pieces[i].Size/cache.Pieces[i].Length*100).toFixed(2) + '%' } - - cache.Readers.forEach((r,k)=> { - if (i >= r.Start && i <= r.End && i !== r.Reader) - html += ' reader-range' - if (i === r.Reader) { - html += ' piece-reader' - info += ' reader' - } - }) } + cache.Readers.forEach((r,k)=> { + if (i >= r.Start && i <= r.End && i !== r.Reader) + html += ' reader-range' + if (i === r.Reader) { + html += ' piece-reader' + info += ' reader' + } + }) html += "' title='" + info + "'>" } return html