Skip to content

Commit

Permalink
Merge pull request joinmisskey#29 from Srgr0/v4-fix-swap-size
Browse files Browse the repository at this point in the history
Fix: swap size is not calculated correctly
  • Loading branch information
Srgr0 committed Jan 25, 2024
2 parents 8e940fc + a265961 commit 4a5d22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misskey-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#

#Version of this script
version="4.0.0-beta.1";
version="4.0.0-beta.2";
NODE_MAJOR="20";

#About this script
Expand Down Expand Up @@ -734,7 +734,7 @@ function options() {
# Make swap
echo "OK, you make swap.";
swap=true;
swap_size=$((3 - "${mem_allarr[1]}"))*1024;
swap_size=$(( (3 - "${mem_allarr[1]}") * 1024 ));
echo "Swap size: ${swap_size}MB";
break
;;
Expand Down

0 comments on commit 4a5d22f

Please sign in to comment.