diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-19 02:30:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-19 02:30:56 -0400 |
commit | f62a4906d1a8886fa086f5bd6a41b8597a31b1d4 (patch) | |
tree | aaa5438556cce06457a1493fb6bfdc1e29ebfe68 /config.cc | |
parent | 41604e0ea65cb342aa05074bf39bbbc832c4c86a (diff) | |
download | fork-ledger-f62a4906d1a8886fa086f5bd6a41b8597a31b1d4.tar.gz fork-ledger-f62a4906d1a8886fa086f5bd6a41b8597a31b1d4.tar.bz2 fork-ledger-f62a4906d1a8886fa086f5bd6a41b8597a31b1d4.zip |
fix to textual parsing, and a bit of reconstruction in main.cc
Diffstat (limited to 'config.cc')
-rw-r--r-- | config.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -97,7 +97,8 @@ Commodity reporting:\n\ -A, --average report average transaction amount\n\ -D, --deviation report deviation from the average\n\ -X, --trend report average deviation from the average\n\ - -Z, --weighted-trend same as trend, but older values less significant\n\n\ + -Z, --weighted-trend same as trend, but older values are less significant\n\ + (-D, -X and -Z make little sense in balance reports)\n\n\ Commands:\n\ balance [REGEXP]... show balance totals for matching accounts\n\ register [REGEXP]... show register of matching transactions\n\ @@ -345,7 +346,7 @@ OPT_BEGIN(trend, "X") { OPT_BEGIN(weighted_trend, "Z") { config->value_expr = "a"; config->total_expr - = "MD(MO/(1+(((t-d)/(30*86400))<0?0:((t-d)/(30*86400)))))"; + = "MD(MO/(1+(((N-d)/(30*86400))<0?0:((N-d)/(30*86400)))))"; } OPT_END(weighted_trend); } // namespace ledger |