Tweaked when we calculate min reading time
This commit is contained in:
parent
c0f7dd39a2
commit
713e20ebf4
2 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue