Skip to content

Commit

Permalink
fix calculate totalPages
Browse files Browse the repository at this point in the history
issue #883
  • Loading branch information
rsoika committed Dec 4, 2024
1 parent 87c84e7 commit 2c9614d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public List<ItemCollection> loadData() throws QueryException {
// The end of a list is reached when the size is below or equal the
// pageSize. See issue #287
totalCount = documentService.count(_query);
totalPages = totalCount / getPageSize();
totalPages = (long) Math.ceil((double) totalCount / getPageSize());
if (result.size() < getPageSize()) {
setEndOfList(true);
} else {
Expand Down

0 comments on commit 2c9614d

Please sign in to comment.