Skip to content

Commit

Permalink
fixed rounding floating point arithmetic issue in calculation of amou…
Browse files Browse the repository at this point in the history
…nt of RAM
  • Loading branch information
nazarimilad committed May 17, 2018
1 parent e92f3ca commit 4ee635e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iota-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -o nounset

declare -r IOTA_NODE_VERSION="2.1.3"
declare REQUIRED_MINIMUM_AMOUNT_OF_RAM=4
declare AMOUNT_OF_RAM=$(($(free -h | awk -F' ' '{print $2}' | head -2 | tail -1 | sed 's/G//')+1))
declare AMOUNT_OF_RAM=$(($(free -h | awk -F' ' '{print $2}' | head -2 | tail -1 | sed 's/G//' | xargs printf "%.*f\n" 0)+1))

# IRI
declare IRI_PORT=14265
Expand Down

0 comments on commit 4ee635e

Please sign in to comment.