Skip to content
Snippets Groups Projects
Commit 946d873c authored by Christof Schulze's avatar Christof Schulze Committed by Matthias Schiffer
Browse files

gluon-status-page-api: limit uhttp max_requests to 16 on devices with <48MB RAM (#1045)

parent 568ba483
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,11 @@ uci -q batch <<-EOF
delete uhttpd.main.listen_https
set uhttpd.main.home=/lib/gluon/status-page/www
set uhttpd.main.max_requests=32
EOF
RAM=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
if [ $RAM -lt $((48*1024)) ]; then
uci set uhttpd.main.max_requests=16
else
uci set uhttpd.main.max_requests=32
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment