diff --git a/sleepCalc.lua b/sleepCalc.lua index 479e017..759fcab 100755 --- a/sleepCalc.lua +++ b/sleepCalc.lua @@ -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));