aboutsummaryrefslogtreecommitdiff
path: root/src/time.h
diff options
context:
space:
mode:
authorSanJacobs2022-07-12 03:22:40 +0200
committerSanJacobs2022-07-12 03:22:40 +0200
commita3900c0419c7f3bb3d47834376b610008d6554cf (patch)
tree40932bce85930518dc09488af613d35d9f7717a0 /src/time.h
parent55adec80ffefd9a1090209cfe6298ff850dedfc4 (diff)
downloadsatscalc-a3900c0419c7f3bb3d47834376b610008d6554cf.tar.gz
satscalc-a3900c0419c7f3bb3d47834376b610008d6554cf.tar.bz2
satscalc-a3900c0419c7f3bb3d47834376b610008d6554cf.zip
Workdays split into price segments in constructor
Diffstat (limited to 'src/time.h')
-rwxr-xr-xsrc/time.h6
1 files changed, 5 insertions, 1 deletions
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