Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: add timeout config for ntp input plugin #722

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

Meepoljdx
Copy link
Contributor

#438 做了个小修改可以在配置文件中通过timeout参数设置ntp的超时时长,单位是s,比如设置成20s
image

m.LiVnMode = (m.LiVnMode & 0xf8) | byte(md)
}

func getTwoTime(host string, version byte, timeout int64) (time.Time, time.Time, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接改nux吧,只有ntp中调用了。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经把修改提到github.com/toolkits/pkg了,等那边更新以后我在改下 :D

@kongfei605 kongfei605 merged commit 1a00123 into flashcatcloud:main Dec 5, 2023
@kongfei605
Copy link
Collaborator

Thank you @Meepoljdx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants