Skip to content

Commit 3873613

Browse files
committed
comment clean up
Signed-off-by: ashprice <gitcommit1@sl.ashprice.co.uk>
1 parent 9c899bc commit 3873613

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/commands/CmdBurndown.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class Bar {
6868
//
6969
// If you're familiar with the old version of the burndown code, note that
7070
// we no longer count deleted tasks except for peak calculation.
71-
// In the counting for completed tasks, note that we do it cumulatively.
7271
//
7372
// e = entry
7473
// s = start
@@ -135,8 +134,9 @@ class Chart {
135134
int _carryover_done{0}; // Number of 'done' tasks prior to chart range
136135
char _period{}; // D, W, M
137136
std::vector<time_t> _peak_day_epochs{}; // All consecutive day epochs (for peak range)
138-
std::vector<int> _peak_diff{}; // Day-granular difference array (sweep-line)
139-
std::unordered_map<time_t, size_t> _peak_day_index{}; // day-epoch → _peak_diff index
137+
std::vector<int> _peak_diff{}; // Difference array for peak counting,
138+
// quantized by day
139+
std::unordered_map<time_t, size_t> _peak_day_index{}; // a map of per-day epochs to _peak_diff
140140
time_t _peak_day{}; // Day of highest pending peak
141141
int _peak_count{0}; // Corresponding peak pending count
142142
int _current_count{0}; // Current count of tasks without end date
@@ -554,7 +554,7 @@ Datetime Chart::increment(const Datetime& input, char period) {
554554

555555
////////////////////////////////////////////////////////////////////////////////
556556
// Build the epoch range used for peak counting. The peak is always quantized
557-
// by day regardless of chart mode..
557+
// by day regardless of chart mode.
558558
void Chart::buildPeakRange(time_t earliest_day, time_t latest_day) {
559559
_peak_diff.clear();
560560
_peak_day_epochs.clear();

0 commit comments

Comments
 (0)