Skip to content

Commit 559d0f8

Browse files
author
runsisi
committed
adjust timer
Signed-off-by: runsisi <[email protected]>
1 parent 3971a7b commit 559d0f8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Clock/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
161161
}
162162

163163
// TODO: read from config file
164-
#define MAX_SLEEP_SECONDS (45 * 60) // 45 minutes
165-
#define MAX_AWAKE_SECONDS (3 * 60) // 3 minutes
164+
#define MAX_SLEEP_SECONDS (60 * 60) // 60 minutes
165+
#define MAX_AWAKE_SECONDS (1 * 60) // 1 minutes
166166

167167
bool g_isAwake = false; // awake, aka is shown on the screen
168168
int g_sleptSeconds = 0; // has slept for # seconds

Clock/autostart.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ set disabled=1
99
REG QUERY HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v restclock > nul 2>&1
1010

1111
if %errorlevel% == 0 (
12-
echo 已设置自启动,取消自启动?
12+
echo 已设置开机自启动,取消自启动?
1313
set disabled=0
1414
) else (
15-
echo 未设置自启动,设置自启动?
15+
echo 未设置开机自启动,设置自启动?
1616
)
1717

1818
echo=
19-
CHOICE /C YC /M "确认请按 Y,取消请按 C。"
19+
CHOICE /C YC /M "确认请按 Y,退出请按 C。"
2020

2121
if %errorlevel% == 1 (
2222
if %disabled% == 0 (

0 commit comments

Comments
 (0)