summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 18:19:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 18:19:25 -0400
commitfadab59e87f7a4789e904f8bda73ed26fbbfd9a8 (patch)
tree22b5c5d177386f2f272135adadf7d02e3e7eb7c5 /config.cc
parentde39574e89cc72aef157d10d451fac1f78af37c6 (diff)
downloadfork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.tar.gz
fork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.tar.bz2
fork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.zip
changes to value expressions, and to how the display predicate is computed
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/config.cc b/config.cc
index 99c4d4b4..2df1b6b1 100644
--- a/config.cc
+++ b/config.cc
@@ -26,7 +26,7 @@ config_t::config_t()
price_db += "/.pricedb";
value_expr = "a";
- total_expr = "T";
+ total_expr = "O";
pricing_leeway = 24 * 3600;
show_subtotals = true;
show_expanded = false;
@@ -301,7 +301,7 @@ OPT_BEGIN(download, "Q") {
OPT_BEGIN(quantity, "O") {
config->value_expr = "a";
- config->total_expr = "T";
+ config->total_expr = "O";
} OPT_END(quantity);
OPT_BEGIN(basis, "B") {
@@ -326,23 +326,23 @@ OPT_BEGIN(gain, "G") {
OPT_BEGIN(average, "A") {
config->value_expr = "a";
- config->total_expr = "MT";
+ config->total_expr = "MO";
} OPT_END(average);
OPT_BEGIN(deviation, "D") {
config->value_expr = "a";
- config->total_expr = "DMT";
+ config->total_expr = "DMO";
} OPT_END(deviation);
OPT_BEGIN(trend, "X") {
config->value_expr = "a";
- config->total_expr = "MDMT";
+ config->total_expr = "MDMO";
} OPT_END(trend);
OPT_BEGIN(weighted_trend, "Z") {
config->value_expr = "a";
config->total_expr
- = "MD(MT/(1+(((t-d)/(30*86400))<0?0:((t-d)/(30*86400)))))";
+ = "MD(MO/(1+(((t-d)/(30*86400))<0?0:((t-d)/(30*86400)))))";
} OPT_END(weighted_trend);
} // namespace ledger