From e02fe8d58fe95619e975e09dfc2da05f93c31283 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 Feb 2009 16:01:33 -0400 Subject: Allow --head to limit the entries generate creates --- src/report.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/report.cc b/src/report.cc index a79a938b..09ce619f 100644 --- a/src/report.cc +++ b/src/report.cc @@ -53,7 +53,9 @@ void report_t::generate_report(post_handler_ptr handler) { generate_posts_iterator walker (session, HANDLED(seed_) ? - static_cast(HANDLER(seed_).value.to_long()) : 0); + static_cast(HANDLER(seed_).value.to_long()) : 0, + HANDLED(head_) ? + static_cast(HANDLER(head_).value.to_long()) : 50); pass_down_posts(chain_post_handlers(*this, handler), walker); } -- cgit v1.2.3