diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-24 16:08:53 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-24 16:10:11 +0300 |
commit | fe12ff9e24969fff690cb94d9755fe22ead24767 (patch) | |
tree | 48ec6795c0e0cf1a5c5c2df61638bd20bf1a8503 /etc | |
parent | bbb25fa49ca06708b14d569b437cfdce6854e838 (diff) |
nc-limits: fix unitsv0.57.13
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ncp-config.d/nc-limits.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |