diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-21 15:55:03 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-21 15:55:03 -0400 |
commit | 000bfe1cece3ecbfee8f07a46d1f0b000dbbc983 (patch) | |
tree | 6d2c666097900fff421da6a57b41f0a7c43a39b7 /config.cc | |
parent | 225acd14e57a0a476ce022a7c5703a8f1cee34ef (diff) | |
download | fork-ledger-000bfe1cece3ecbfee8f07a46d1f0b000dbbc983.tar.gz fork-ledger-000bfe1cece3ecbfee8f07a46d1f0b000dbbc983.tar.bz2 fork-ledger-000bfe1cece3ecbfee8f07a46d1f0b000dbbc983.zip |
only compute the cost when it differs from the amount
Diffstat (limited to 'config.cc')
-rw-r--r-- | config.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |