From 000bfe1cece3ecbfee8f07a46d1f0b000dbbc983 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Aug 2004 15:55:03 -0400 Subject: only compute the cost when it differs from the amount --- config.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.cc') diff --git a/config.cc b/config.cc index 34802929..e1f52a61 100644 --- a/config.cc +++ b/config.cc @@ -180,7 +180,7 @@ OPT_BEGIN(end_date, "e:") { OPT_BEGIN(current, "c") { if (! config->predicate.empty()) config->predicate += "&"; - config->predicate += "d<=N"; + config->predicate += "d<=m"; } OPT_END(current); OPT_BEGIN(cleared, "C") { @@ -346,7 +346,7 @@ OPT_BEGIN(trend, "X") { OPT_BEGIN(weighted_trend, "Z") { config->value_expr = "a"; config->total_expr - = "MD(MO/(1+(((N-d)/(30*86400))<0?0:((N-d)/(30*86400)))))"; + = "MD(MO/(1+(((m-d)/(30*86400))<0?0:((m-d)/(30*86400)))))"; } OPT_END(weighted_trend); } // namespace ledger -- cgit v1.2.3