From f62a4906d1a8886fa086f5bd6a41b8597a31b1d4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Aug 2004 02:30:56 -0400 Subject: fix to textual parsing, and a bit of reconstruction in main.cc --- config.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config.cc') 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 -- cgit v1.2.3