Skip to content

Commit 678bbf4

Browse files
committed
Need type conversion
1 parent 17f2681 commit 678bbf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"fmt"
88
"hash/crc32"
99
"io"
10+
"math"
1011
"net"
1112
"sync/atomic"
1213
"time"
@@ -1093,8 +1094,8 @@ func (m *Memberlist) decryptRemoteState(bufConn io.Reader, streamLabel string) (
10931094
}
10941095

10951096
//Start reporting the size before you cross the limit
1096-
if moreBytes > .6*maxPushStateBytes {
1097-
m.logger.Printf("[WARN] memberlist: Remote node state size is %d approaching limit (%d)", moreBytes, maxPushStateBytes)
1097+
if moreBytes > uint32(math.Floor(.06*maxPushStateBytes)) {
1098+
m.logger.Printf("[INFO] memberlist: Remote node state size is %d limit is (%d)", moreBytes, maxPushStateBytes)
10981099
}
10991100

11001101
// Read in the rest of the payload

0 commit comments

Comments
 (0)