Skip to content

Commit 6138f94

Browse files
committed
micro sleep fix to second
1 parent 4f18d26 commit 6138f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scouterx/netio/udpsender/udpsender.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func GetInstance() *UDPSender {
4747

4848
func reloadUdpSender() {
4949
for {
50-
time.Sleep(1000)
50+
time.Sleep(1000 * time.Millisecond)
5151
if serverAddr != ac.NetCollectorIP || udpServerPort != ac.NetCollectorUDPPort || udpMaxBytes != ac.UDPMaxBytes {
5252
serverAddr = ac.NetCollectorIP
5353
udpServerPort = ac.NetCollectorUDPPort

0 commit comments

Comments
 (0)