Allow --head to limit the entries generate creates

This commit is contained in:
John Wiegley 2009-02-27 16:01:33 -04:00
parent 38cf0e56f5
commit e02fe8d58f

View file

@ -53,7 +53,9 @@ void report_t::generate_report(post_handler_ptr handler)
{
generate_posts_iterator walker
(session, HANDLED(seed_) ?
static_cast<unsigned int>(HANDLER(seed_).value.to_long()) : 0);
static_cast<unsigned int>(HANDLER(seed_).value.to_long()) : 0,
HANDLED(head_) ?
static_cast<unsigned int>(HANDLER(head_).value.to_long()) : 50);
pass_down_posts(chain_post_handlers(*this, handler), walker);
}