From be8120bd3928b1399d882f80e30714bcefe63049 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 16 Nov 2014 15:53:19 +0100 Subject: [PATCH] Livestatus\Connection: document hardcoded count --- library/Icinga/Protocol/Livestatus/Connection.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Icinga/Protocol/Livestatus/Connection.php b/library/Icinga/Protocol/Livestatus/Connection.php index 7b8f438f5..24aedec47 100644 --- a/library/Icinga/Protocol/Livestatus/Connection.php +++ b/library/Icinga/Protocol/Livestatus/Connection.php @@ -96,6 +96,16 @@ class Connection } } + /** + * Count unlimited rows matching the query filter + * + * TODO: Currently hardcoded value, as the old variant was stupid + * Create a working variant doing this->execute(query->renderCount())... + * + * @param Query $query the query object + * + * @return int + */ public function count(Query $query) { return 100;