Skip to content

Commit

Permalink
micro sleep fix to second
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlee01 committed Jan 25, 2021
1 parent 4f18d26 commit 6138f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scouterx/netio/udpsender/udpsender.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func GetInstance() *UDPSender {

func reloadUdpSender() {
for {
time.Sleep(1000)
time.Sleep(1000 * time.Millisecond)
if serverAddr != ac.NetCollectorIP || udpServerPort != ac.NetCollectorUDPPort || udpMaxBytes != ac.UDPMaxBytes {
serverAddr = ac.NetCollectorIP
udpServerPort = ac.NetCollectorUDPPort
Expand Down

0 comments on commit 6138f94

Please sign in to comment.