From: paul Date: Wed, 6 Apr 2016 12:46:51 +0000 (+0000) Subject: bugfix: show last page in pagination X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=5fcbb630ca5ed443e0cabe0c96a31e14dd413ab3;p=serve0 bugfix: show last page in pagination svn path=/trunk/; revision=115 --- diff --git a/pages/list.sh b/pages/list.sh index 6cc5fdc..063bf40 100755 --- a/pages/list.sh +++ b/pages/list.sh @@ -154,4 +154,4 @@ thumblist() { done } -pagecount="$(( $(selectionlist | wc -l) / $pagesize ))" +pagecount="$(( $(selectionlist | wc -l) / $pagesize + 1 ))"