diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index 5e0fdb1..204aefa 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -411,7 +411,7 @@ function readbook_kuri($hash, $page = 1){ $html = convert2html($htmlfile); $razmer = strlen($html); - $count = ceil($razmer / $limit); + $count = floor($razmer / $limit); // $html .= convert2html($dir.'chapter-1.xhtml'); $pagehtml = pagehtml($html, $page, $limit);