mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 03:01:04 -05:00
Fix percentage display
This commit is contained in:
@@ -289,7 +289,7 @@ async function saveGuildMessageHistory(
|
|||||||
const channelAge = firstMessageDate - channelCreateDate;
|
const channelAge = firstMessageDate - channelCreateDate;
|
||||||
const lastMessageAge = firstMessageDate - oldestMessageDate;
|
const lastMessageAge = firstMessageDate - oldestMessageDate;
|
||||||
const pctComplete = lastMessageAge / channelAge;
|
const pctComplete = lastMessageAge / channelAge;
|
||||||
currentChannelPercent.value = `${pctComplete.toFixed(2)}%`;
|
currentChannelPercent.value = `${(pctComplete * 100).toFixed(2)}%`;
|
||||||
channelEta.report(pctComplete);
|
channelEta.report(pctComplete);
|
||||||
const estimateSeconds = channelEta.estimate();
|
const estimateSeconds = channelEta.estimate();
|
||||||
if (Number.isFinite(estimateSeconds))
|
if (Number.isFinite(estimateSeconds))
|
||||||
|
|||||||
Reference in New Issue
Block a user