Skip to content

Commit f2369f5

Browse files
committed
Added time notice in each checking msg
1 parent 17033c9 commit f2369f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

task/task.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ func check(url *string) bool {
2020

2121
func Start(url *string) {
2222
check(url)
23-
fmt.Println("\033[0m正在后台运行中... 将在24小时后进行下一次检测")
23+
f_time := time.Now().Format("2006-01-02 15:04:05")
24+
fmt.Printf("\033[0m%v 正在后台运行中... 将在24小时后进行下一次检测\n", f_time)
2425
ticker := time.NewTicker(24 * time.Hour)
2526
defer ticker.Stop()
2627
for {

0 commit comments

Comments
 (0)