diff --git a/library/Icinga/Protocol/File/FileReader.php b/library/Icinga/Protocol/File/FileReader.php index d16038741..a06494c0e 100644 --- a/library/Icinga/Protocol/File/FileReader.php +++ b/library/Icinga/Protocol/File/FileReader.php @@ -129,7 +129,7 @@ class FileReader implements Selectable, Countable } $lines = array(); if ($query->sortDesc()) { - $count = $this->count($query); + $count = $this->count(); if ($count <= $skip) { return $lines; } elseif ($count < ($skip + $read)) {