summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.cc b/config.cc
index 5a273b3d..4153f213 100644
--- a/config.cc
+++ b/config.cc
@@ -586,16 +586,16 @@ OPT_BEGIN(average, "A") {
} OPT_END(average);
OPT_BEGIN(deviation, "D") {
- config.total_expr = std::string("DM") + config.total_expr;
+ config.total_expr = std::string("t-M") + config.total_expr;
} OPT_END(deviation);
OPT_BEGIN(trend, "X") {
- config.total_expr = std::string("MDM") + config.total_expr;
+ config.total_expr = std::string("M(t-M") + config.total_expr + ")";
} OPT_END(trend);
OPT_BEGIN(weighted_trend, "Z") {
- config.total_expr = (std::string("MD(M(") + config.total_expr +
- ")/(1+(((m-d)/(30*86400))<0?0:((m-d)/(30*86400)))))");
+ config.total_expr = (std::string("M(t-(M(") + config.total_expr +
+ ")/(1+(((m-d)/(30*86400))<0?0:((m-d)/(30*86400))))))");
} OPT_END(weighted_trend);
} // namespace ledger