1. 返回合适的错误标识

This commit is contained in:
2024-10-31 15:29:13 +08:00
parent 8afb72cab6
commit 763376a95c
3 changed files with 9 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ func (h *HIKNvr) UTCDiff() int {
if h.State {
data := nvrUTCDiff(h.core)
h.mux.RUnlock()
if nvrUTCDiff(h.core) == 500 {
if nvrUTCDiff(h.core) == 5000 {
h.mux.Lock()
h.State = false
h.mux.Unlock()
@@ -97,5 +97,5 @@ func (h *HIKNvr) UTCDiff() int {
} else {
h.mux.RUnlock()
}
return 1000
return 5000
}