diff --git a/webui.cc b/webui.cc index 464610d..c022836 100644 --- a/webui.cc +++ b/webui.cc @@ -546,7 +546,9 @@ function ToggleAutoRefresh() { "onclick=\"ToggleAutoRefresh()\">Toggle Auto-refresh"; config_table.RenderTABLE(html, opts); devices_table.RenderTABLE(html, opts); - log_table.RenderTABLE(html, opts); + Table::RenderOptions log_opts = opts; + log_opts.row_offset = std::max(0, messages.size() - opts.row_limit); + log_table.RenderTABLE(html, log_opts); dhcp::table.RenderTABLE(html, opts); dns::table.RenderTABLE(html, opts); html += "";