fix: calculating with currentSentences instead of page

This commit is contained in:
Luke Leppan 2023-03-30 00:01:11 +02:00
parent 86ca1199cc
commit 0712d9f61a
No known key found for this signature in database
GPG key ID: D35B272CE58AE00A

View file

@ -120,7 +120,7 @@ export default class StatsManager {
this.vaultStats.history[this.today].totalSentences += this.vaultStats.history[this.today].totalSentences +=
currentSentences - modFiles[fileName].sentences.current; currentSentences - modFiles[fileName].sentences.current;
this.vaultStats.history[this.today].totalPages += this.vaultStats.history[this.today].totalPages +=
currentSentences - modFiles[fileName].pages.current; currentPages - modFiles[fileName].pages.current;
modFiles[fileName].words.current = currentWords; modFiles[fileName].words.current = currentWords;
modFiles[fileName].characters.current = currentCharacters; modFiles[fileName].characters.current = currentCharacters;
modFiles[fileName].sentences.current = currentSentences; modFiles[fileName].sentences.current = currentSentences;