From a3900c0419c7f3bb3d47834376b610008d6554cf Mon Sep 17 00:00:00 2001 From: SanJacobs Date: Tue, 12 Jul 2022 03:22:40 +0200 Subject: Workdays split into price segments in constructor --- src/time.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/time.h') diff --git a/src/time.h b/src/time.h index 3afc70b..81111c1 100755 --- a/src/time.h +++ b/src/time.h @@ -54,7 +54,11 @@ struct workday{ moment call; moment wrap; moment planned_wrap; - timeblock blocks[14]; + timeblock blocks[13]; + int total_timeblocks; + // total_timeblocks exsists because blocks[13] can't be shrunk, + // so total_timeblocks is the point at which blocks[13] just contains + // garbage data. // // 1. call // 2. sleepbreach -- cgit v1.2.1