Skip to content

Commit

Permalink
Fix total page calculation when page_size is not the default
Browse files Browse the repository at this point in the history
  • Loading branch information
rosa committed Mar 20, 2024
1 parent 9f27807 commit 19c3c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mission_control/jobs/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def next_index
end

def pages_count
(total_count.to_f / 10).ceil unless total_count.infinite?
(total_count.to_f / page_size).ceil unless total_count.infinite?
end

def total_count
Expand Down

0 comments on commit 19c3c6b

Please sign in to comment.