CmdChart: Corrected report setting names

This commit is contained in:
Paul Beckingham 2016-05-21 19:35:29 -05:00
parent 80e9edb90f
commit e7aaf175c4

View file

@ -299,7 +299,7 @@ static std::string renderTotal (
const Rules& rules, const Rules& rules,
time_t work) time_t work)
{ {
auto showTotal = rules.getBoolean ("reports." + type + ".total"); auto showTotal = rules.getBoolean ("reports." + type + ".totals");
std::stringstream out; std::stringstream out;
if (showTotal && work) if (showTotal && work)
@ -323,7 +323,7 @@ static std::string renderSubTotal (
time_t total_work) time_t total_work)
{ {
std::stringstream out; std::stringstream out;
if (rules.getBoolean ("reports." + type + ".total")) if (rules.getBoolean ("reports." + type + ".totals"))
{ {
int indent = (rules.getBoolean ("reports." + type + ".month") ? 4 : 0) + int indent = (rules.getBoolean ("reports." + type + ".month") ? 4 : 0) +
(rules.getBoolean ("reports." + type + ".week") ? 4 : 0) + (rules.getBoolean ("reports." + type + ".week") ? 4 : 0) +