From 521b935aa8ef68ac3a8a1fe1a37eed39b41eec95 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 21 Jun 2009 18:07:27 +0100 Subject: Restored --percent option, added baseline test --- src/session.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 2ae09e21..6b891e1b 100644 --- a/src/session.cc +++ b/src/session.cc @@ -81,6 +81,12 @@ session_t::session_t() commodity->add_flags(COMMODITY_BUILTIN | COMMODITY_NOMARKET); else assert(false); + + // Add a "percentile" commodity + if (commodity_t * commodity = commodity_pool->create("%")) + commodity->add_flags(COMMODITY_BUILTIN | COMMODITY_NOMARKET); + else + assert(false); } std::size_t session_t::read_journal(std::istream& in, -- cgit v1.2.3