Skip to content

Commit a539159

Browse files
committed
fix maxMemory comment
1 parent c0d4126 commit a539159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/resource_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func makeResourceMgr(enabled bool, maxMemory, maxFD uint64, connMgrHighWater int
3030
// Auto-scaled limits based on available memory/fds.
3131
if maxMemory == 0 {
3232
maxMemory = uint64((float64(memory.TotalMemory()) * 0.25))
33-
if maxMemory < 1<<20 { // 1 GiB
33+
if maxMemory < 1<<20 { // 1 MiB
3434
maxMemory = 1 << 20
3535
}
3636
}

0 commit comments

Comments
 (0)