host/history: Don't fetch newer entries than what is shown

This commit is contained in:
Johannes Meyer 2021-11-08 16:25:59 +01:00
parent 832b8fe8b9
commit 9544564a3b

View file

@ -24,6 +24,7 @@ use Icinga\Module\Icingadb\Widget\Detail\QuickActions;
use Icinga\Module\Icingadb\Widget\ItemList\HostList;
use Icinga\Module\Icingadb\Widget\ItemList\HistoryList;
use Icinga\Module\Icingadb\Widget\ItemList\ServiceList;
use ipl\Stdlib\Filter;
use ipl\Web\Url;
use ipl\Web\Widget\Tabs;
@ -150,6 +151,8 @@ class HostController extends Controller
$history->limit($page * $limitControl->getLimit());
}
$history->filter(Filter::lessThanOrEqual('event_time', $before));
yield $this->export($history);
$this->addControl((new HostList([$this->host]))