dhcpd: check server existence on more platforms

This commit is contained in:
nadoo committed 2022-02-23 17:48:43 +08:00
1 parent f96ad73c7d
commit 1f196c9cf5
12 files changed
+144 -86

No files matched your search

+2 -2
View File
@@ -267,8 +267,8 @@ func (p *FwdrGroup) check(fwdr *Forwarder, checker Checker) {
wait = 1
p.setLatency(fwdr, elapsed)
log.F("[check] %s: %s(%d), SUCCESS. elapsed: %s, Latency: %s",
p.name, fwdr.Addr(), fwdr.Priority(), elapsed, time.Duration(fwdr.Latency()))
log.F("[check] %s: %s(%d), SUCCESS. Elapsed: %dms, Latency: %dms.",
p.name, fwdr.Addr(), fwdr.Priority(), elapsed.Milliseconds(), time.Duration(fwdr.Latency()).Milliseconds())
fwdr.Enable()
}
}