From fe12ff9e24969fff690cb94d9755fe22ead24767 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sun, 24 Jun 2018 15:08:53 +0200 Subject: nc-limits: fix units --- etc/ncp-config.d/nc-limits.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/ncp-config.d/nc-limits.sh b/etc/ncp-config.d/nc-limits.sh index a9bfce03..706d0131 100644 --- a/etc/ncp-config.d/nc-limits.sh +++ b/etc/ncp-config.d/nc-limits.sh @@ -19,7 +19,7 @@ INFO="Examples: 200M or 2G. Write 0 for autoconfig" configure() { # Set auto memory limit to 75% of the total memory - local TOTAL_MEM="$( free | sed -n 2p | awk '{ print $2 }' )" + local TOTAL_MEM="$( free -b | sed -n 2p | awk '{ print $2 }' )" AUTOMEM=$(( TOTAL_MEM * 75 / 100 )) # MAX FILESIZE -- cgit v1.2.3