Skip to content

Commit

Permalink
Update cron
Browse files Browse the repository at this point in the history
  • Loading branch information
libsgh committed Sep 24, 2024
1 parent 0edb17b commit dfc47c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chrome_auto_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ func chromeAutoUpdate(a fyne.App, win fyne.Window, data *SettingsData) {
var runFlag = 0

func addUpdateCron(data *SettingsData) {
spec := "* * */1 * * *" // 每隔5s执行一次,cron格式(秒,分,时,天,月,周)
spec := "0 0 0/1 * * ?"
_, _ = cronManager.AddFunc(spec, func() {
fmt.Println(time.Now())
chromeInUse := isProcessExist("chrome.exe")
if runFlag == 1 || chromeInUse {
return
Expand Down

0 comments on commit dfc47c5

Please sign in to comment.