aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSan Jacobs2023-02-07 08:09:21 +0100
committerSan Jacobs2023-02-07 08:09:21 +0100
commiteca8aac0aafd6397827f9820be06ac93368cd772 (patch)
tree698a946729a18f2399af17f64c31be8612113eb2 /src
parenta2dd2074d7ee6dfe4b7192449c9f5a2c86d587c1 (diff)
downloadsatscalc-eca8aac0aafd6397827f9820be06ac93368cd772.tar.gz
satscalc-eca8aac0aafd6397827f9820be06ac93368cd772.tar.bz2
satscalc-eca8aac0aafd6397827f9820be06ac93368cd772.zip
Extremely minor cleanup
Diffstat (limited to 'src')
-rwxr-xr-xsrc/time.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/time.cpp b/src/time.cpp
index 9cf7802..c9609ad 100755
--- a/src/time.cpp
+++ b/src/time.cpp
@@ -129,7 +129,8 @@ workday::workday(const moment& previous_wrap,
planned_wrap = planned_wraptime;
timeblock initial_block{call,
std::max(
- // Paragraph 6.7 says that up to 2 hours of unused warned overtime counts as worktime, though so that at least one hour of the unused overtime is not counted.
+ // Paragraph 6.7 says that up to 2 hours of unused warned overtime counts as worktime,
+ // though so that at least one hour of the unused overtime is not counted.
// (It's unclear if an 8-hour day that ends 3 hours in counts as having 5 hours of unused overtime)
std::clamp(planned_wrap-(delta){0, 1, 0}, wraptime, planned_wraptime+(delta){0, 2, 0}),
call+(delta){0, 4, 0})};
@@ -319,7 +320,8 @@ bool moment::isEaster() {
moment gaussEaster(int year) {
// Thanks to Carl Friedrich Gauss for the algorythm
- // Thanks rahulhegde97, bansal_rtk_, code_hunt, sanjoy_62, simranarora5sos and aashutoshparoha on GeeksForGeeks for the implementation I based this on.
+ // Thanks rahulhegde97, bansal_rtk_, code_hunt, sanjoy_62, simranarora5sos
+ // and aashutoshparoha on GeeksForGeeks for the implementation I based this on.
float A, B, C, P, Q, M, N, D, E;
int easter_month = 0;
int easter_day = 0;