Tweaked when we calculate min reading time

This commit is contained in:
Joseph Milazzo 2022-05-25 17:48:50 -05:00
parent c0f7dd39a2
commit 713e20ebf4
2 changed files with 5 additions and 3 deletions

View file

@ -75,7 +75,7 @@ export class SeriesMetadataDetailComponent implements OnInit, OnChanges {
if (this.series.format === MangaFormat.EPUB) {
this.minHoursToRead = parseInt(Math.round(this.series.wordCount / MAX_WORDS_PER_HOUR) + '', 10);
this.maxHoursToRead = parseInt(Math.round(this.series.wordCount / MIN_WORDS_PER_HOUR) + '', 10);
} else if (this.series.format === MangaFormat.IMAGE || this.series.format === MangaFormat.ARCHIVE) {
} else {
this.minHoursToRead = parseInt(Math.round((this.series.wordCount * MAX_PAGES_PER_MINUTE) / 60) + '', 10);
this.maxHoursToRead = parseInt(Math.round((this.series.wordCount * MIN_PAGES_PER_MINUTE) / 60) + '', 10);
}