mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
internal/debug: fix log memory limit format (#33336)
This commit is contained in:
parent
6f2cbb7a27
commit
da3822dcec
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ func (*HandlerT) SetGCPercent(v int) int {
|
|||
// - Geth also allocates memory off-heap, particularly for fastCache and Pebble,
|
||||
// which can be non-trivial (a few gigabytes by default).
|
||||
func (*HandlerT) SetMemoryLimit(limit int64) int64 {
|
||||
log.Info("Setting memory limit", "size", common.PrettyDuration(limit))
|
||||
log.Info("Setting memory limit", "size", common.StorageSize(limit))
|
||||
return debug.SetMemoryLimit(limit)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue