mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2026-08-18 18:16:01 +00:00
use /proc/self/statm to get current usage
This commit is contained in:
+2
-2
@@ -140,8 +140,8 @@ var (
|
||||
},
|
||||
&cli.Uint64Flag{
|
||||
Name: "memory-limit",
|
||||
Usage: "maximum size of memory in bytes to use for caching, default: 512MB",
|
||||
Value: 512 * 1024 * 1024,
|
||||
Usage: "maximum size of memory in KiB to use for caching, default: 512MiB",
|
||||
Value: 512 * 1024,
|
||||
EnvVars: []string{"MAX_MEMORY_SIZE"},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user