summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-19 02:30:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-19 02:30:56 -0400
commitf62a4906d1a8886fa086f5bd6a41b8597a31b1d4 (patch)
treeaaa5438556cce06457a1493fb6bfdc1e29ebfe68 /config.cc
parent41604e0ea65cb342aa05074bf39bbbc832c4c86a (diff)
downloadfork-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.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.cc b/config.cc
index ecf3d649..56b56761 100644
--- a/config.cc
+++ b/config.cc
@@ -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