summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 975f64a68..8884bda5d 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -411,12 +411,12 @@ func (p *Page) analyzePage() {
p.WordCount = len(p.PlainWords())
}
- p.FuzzyWordCount = int((p.WordCount+100)/100) * 100
+ p.FuzzyWordCount = (p.WordCount + 100) / 100 * 100
if p.isCJKLanguage {
- p.ReadingTime = int((p.WordCount + 500) / 501)
+ p.ReadingTime = (p.WordCount + 500) / 501
} else {
- p.ReadingTime = int((p.WordCount + 212) / 213)
+ p.ReadingTime = (p.WordCount + 212) / 213
}
}