Sarting time now starts when it should - after we fall asleep
This commit is contained in:
parent
8ec8418a04
commit
a4e81c184a
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ local now = os.time();
|
||||||
print("If gonna fall sleep at: " .. os.date("%H:%M", now + (gonnaFallAsleepIn * 60)));
|
print("If gonna fall sleep at: " .. os.date("%H:%M", now + (gonnaFallAsleepIn * 60)));
|
||||||
print("Wake up | to sleep\n------------------");
|
print("Wake up | to sleep\n------------------");
|
||||||
|
|
||||||
|
now = now + (gonnaFallAsleepIn * 60); -- We need to start counting from when we fall asleep
|
||||||
local sleepLen = actualSleepCycle;
|
local sleepLen = actualSleepCycle;
|
||||||
for i = 0, 7, 1 do
|
for i = 0, 7, 1 do
|
||||||
print(os.date("%H:%M", now + (actualSleepCycle * 60)) .. " | " .. getHoursAndMinsString(sleepLen));
|
print(os.date("%H:%M", now + (actualSleepCycle * 60)) .. " | " .. getHoursAndMinsString(sleepLen));
|
||||||
|
|
Loading…
Reference in a new issue