diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-27 19:13:08 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-27 19:13:08 -0400 |
commit | cc98b59d1e99238270eb307b117da8b0b35e6f27 (patch) | |
tree | f9722f1b305bb127dd7b7daef4e180a0014f9b00 /config.cc | |
parent | ccf55719102d3a0c2933aceb3c370b8d06d1456a (diff) | |
download | fork-ledger-cc98b59d1e99238270eb307b117da8b0b35e6f27.tar.gz fork-ledger-cc98b59d1e99238270eb307b117da8b0b35e6f27.tar.bz2 fork-ledger-cc98b59d1e99238270eb307b117da8b0b35e6f27.zip |
corrected semantics of -j and -J
Diffstat (limited to 'config.cc')
-rw-r--r-- | config.cc | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -25,8 +25,8 @@ config_t::config_t() balance_format = "%20T %2_%-n\n"; register_format = ("%D %-.20P %-.22N %12.66t %12.80T\n%/" "%32|%-.22N %12.66t %12.80T\n"); - plot_amount_format = "%D %t\n"; - plot_total_format = "%D %T\n"; + plot_amount_format = "%D %(St)\n"; + plot_total_format = "%D %(ST)\n"; print_format = "\n%D %X%C%P\n %-34N %12o\n%/ %-34N %12o\n"; equity_format = "\n%D %X%C%P\n%/ %-34N %12t\n"; prices_format = "%[%Y/%m/%d %H:%M:%S %Z] %-10N %12t %12T\n"; @@ -531,12 +531,10 @@ OPT_BEGIN(total_expr, "T:") { } OPT_END(total_expr); OPT_BEGIN(amount_data, "j") { - config.amount_expr = "S" + config.amount_expr; config.format_string = config.plot_amount_format; } OPT_END(amount_data); OPT_BEGIN(total_data, "J") { - config.total_expr = "S" + config.total_expr; config.format_string = config.plot_total_format; } OPT_END(total_data); @@ -582,15 +580,15 @@ OPT_BEGIN(gain, "G") { } OPT_END(gain); OPT_BEGIN(average, "A") { - config.total_expr = std::string("M") + config.total_expr; + config.total_expr = std::string("M(") + config.total_expr + ")"; } OPT_END(average); OPT_BEGIN(deviation, "D") { - config.total_expr = std::string("t-M") + 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("M(t-M") + config.total_expr + ")"; + config.total_expr = std::string("M(t-M(") + config.total_expr + "))"; } OPT_END(trend); OPT_BEGIN(weighted_trend, "Z") { |