mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-02-05 17:20:39 +08:00
Rewrite constants to be more obvious
This commit is contained in:
parent
5abae10710
commit
ac716c1bf3
14
obs/stats.go
14
obs/stats.go
@ -70,15 +70,15 @@ var (
|
|||||||
|
|
||||||
memDistribution = []float64{
|
memDistribution = []float64{
|
||||||
1 << 10, // 1KB
|
1 << 10, // 1KB
|
||||||
1 << 12, // 4KB
|
4 << 10, // 4KB
|
||||||
1 << 15, // 32KB
|
32 << 10, // 32KB
|
||||||
1 << 20, // 1MB
|
1 << 20, // 1MB
|
||||||
1 << 25, // 32MB
|
32 << 20, // 32MB
|
||||||
1 << 28, // 256MB
|
256 << 20, // 256MB
|
||||||
1 << 29, // 512MB
|
512 << 20, // 512MB
|
||||||
1 << 30, // 1GB
|
1 << 30, // 1GB
|
||||||
1 << 31, // 2GB
|
2 << 30, // 2GB
|
||||||
1 << 32, // 4GB
|
4 << 30, // 4GB
|
||||||
}
|
}
|
||||||
PeerMemoryView = &view.View{
|
PeerMemoryView = &view.View{
|
||||||
Measure: peerMemory,
|
Measure: peerMemory,
|
||||||
|
Loading…
Reference in New Issue
Block a user