summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/list_options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/list_options.go b/models/list_options.go
index 9cccd05465..ff02933f9b 100644
--- a/models/list_options.go
+++ b/models/list_options.go
@@ -41,7 +41,7 @@ func (opts *ListOptions) setEnginePagination(e Engine) Engine {
func (opts *ListOptions) GetStartEnd() (start, end int) {
opts.setDefaultValues()
start = (opts.Page - 1) * opts.PageSize
- end = start + opts.Page
+ end = start + opts.PageSize
return
}