Skip to content

Commit d73205d

Browse files
authored
Merge pull request #2596 from CortexFoundation/dev
internal/debug: fix log memory limit format
2 parents a583b82 + ae82737 commit d73205d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/debug/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (*HandlerT) SetGCPercent(v int) int {
216216
// - Geth also allocates memory off-heap, particularly for fastCache and Pebble,
217217
// which can be non-trivial (a few gigabytes by default).
218218
func (*HandlerT) SetMemoryLimit(limit int64) int64 {
219-
log.Info("Setting memory limit", "size", common.PrettyDuration(limit))
219+
log.Info("Setting memory limit", "size", common.StorageSize(limit))
220220
return debug.SetMemoryLimit(limit)
221221
}
222222

0 commit comments

Comments
 (0)