aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-builds.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-03 21:25:27 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-04 17:19:14 +0300
commit7dabb6e931740b2777be5dca53c3cec0b984f0fb (patch)
treee89348003d3161d1a93ef2aa0bd7d293c7e55075 /mod/mod-builds.cxx
parentbc899becb66e37df6dc93aeca885c68b96e33a1a (diff)
Print configuration target and classes on build configurations page
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r--mod/mod-builds.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx
index 91a4aa6..6ad5a0e 100644
--- a/mod/mod-builds.cxx
+++ b/mod/mod-builds.cxx
@@ -292,7 +292,7 @@ handle (request& rq, response& rs)
if (build_db_ == nullptr)
throw invalid_request (501, "not implemented");
- const size_t page_configs (options_->build_configurations ());
+ const size_t page_configs (options_->build_page_entries ());
const string& host (options_->host ());
const dir_path& root (options_->root ());
const string& tenant_name (options_->tenant_name ());
@@ -478,6 +478,7 @@ handle (request& rq, response& rs)
//
count = 0;
vector<shared_ptr<build>> builds;
+ builds.reserve (page_configs);
// Prepare the package build prepared query.
//