From 0d310453612dcc99fa39983c04d4de7063722627 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Fri, 28 Dec 2018 16:17:11 +0100 Subject: [PATCH] Rename variables --- src/commands/CmdChart.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/CmdChart.cpp b/src/commands/CmdChart.cpp index 9de8a1d5..c2bd7160 100644 --- a/src/commands/CmdChart.cpp +++ b/src/commands/CmdChart.cpp @@ -322,17 +322,17 @@ static void renderAxis ( auto current_hour = Datetime ().hour (); auto spacing = rules.getInteger ("reports." + type + ".spacing"); - auto showTotal = rules.getBoolean ("reports." + type + ".totals"); + auto with_totals = rules.getBoolean ("reports." + type + ".totals"); Color colorLabel (with_colors ? rules.get ("theme.colors.label") : ""); Color colorToday (with_colors ? rules.get ("theme.colors.today") : ""); - auto cell = rules.getInteger ("reports." + type + ".cell"); + auto minutes_per_char = rules.getInteger ("reports." + type + ".cell"); - if (cell < 1) + if (minutes_per_char < 1) { throw format ("The value for 'reports.{1}.cell' must be at least 1.", type); } - auto chars_per_hour = 60 / cell; + auto chars_per_hour = 60 / minutes_per_char; std::cout << indent; for (int hour = first_hour; hour <= last_hour; hour++) @@ -347,7 +347,7 @@ static void renderAxis ( } } - if (showTotal) + if (with_totals) { std::cout << " " << colorLabel.colorize ("Total"); }