Sarting time now starts when it should - after we fall asleep

This commit is contained in:
Felisp 2024-01-08 21:15:26 +01:00
parent 8ec8418a04
commit a4e81c184a

View file

@ -34,6 +34,7 @@ local now = os.time();
print("If gonna fall sleep at: " .. os.date("%H:%M", now + (gonnaFallAsleepIn * 60)));
print("Wake up | to sleep\n------------------");
now = now + (gonnaFallAsleepIn * 60); -- We need to start counting from when we fall asleep
local sleepLen = actualSleepCycle;
for i = 0, 7, 1 do
print(os.date("%H:%M", now + (actualSleepCycle * 60)) .. " | " .. getHoursAndMinsString(sleepLen));