Skip to content

Commit

Permalink
Merge pull request #2 from bedlaj/develop
Browse files Browse the repository at this point in the history
Fixed strings in arithmetic expressions
  • Loading branch information
HLXEasy authored Sep 9, 2018
2 parents 72fc1a4 + d8d6020 commit 87850ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spectrecoin_rpc_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -969,22 +969,22 @@ calculateLayout() {
local _max_buff
POS_Y_MENU=0
_max_buff=$(($(tput cols) / 2))
_max_buff=$((45>${_max_buff}?"45":${_max_buff}))
SIZE_X_MENU=$((60<${_max_buff}?"60":${_max_buff}))
_max_buff=$((45>${_max_buff}?45:${_max_buff}))
SIZE_X_MENU=$((60<${_max_buff}?60:${_max_buff}))
SIZE_Y_MENU=13

#Size for the displayed transactions in main menu
_max_buff=$(($(tput cols) - ${SIZE_X_MENU}))
SIZE_X_TRANS=$((85<${_max_buff}?"85":${_max_buff}))
SIZE_X_TRANS=$((85<${_max_buff}?85:${_max_buff}))
SIZE_Y_TRANS=$(($(tput lines) - ${POS_Y_MENU}))

# Size for the displayed info in main menu
SIZE_X_INFO=${SIZE_X_MENU}
_max_buff=$(($(tput lines) - ${POS_Y_MENU} - ${SIZE_Y_MENU}))
SIZE_Y_INFO=$((15<${_max_buff}?"15":${_max_buff}))
SIZE_Y_INFO=$((15<${_max_buff}?15:${_max_buff}))

# Size for view all transactions dialog
SIZE_X_TRANS_VIEW=$((74<$(tput cols)?"74":$(tput cols)))
SIZE_X_TRANS_VIEW=$((74<$(tput cols)?74:$(tput cols)))
SIZE_Y_TRANS_VIEW=$(tput lines)

POS_X_MENU=$(($(($(tput cols) - ${SIZE_X_MENU} - ${SIZE_X_TRANS})) / 2))
Expand All @@ -1010,7 +1010,7 @@ calculateLayout() {
# not used yet
TEXTHIGHT_INFO=$(( ${SIZE_Y_INFO} - 2 ))

SIZE_X_GAUGE=$((60<$(tput cols)?"60":$(tput cols)))
SIZE_X_GAUGE=$((60<$(tput cols)?60:$(tput cols)))
SIZE_Y_GAUGE=0
#
TITLE_BACK="Spectrecoin Bash RPC Wallet Interface ($VERSION)"
Expand Down

0 comments on commit 87850ad

Please sign in to comment.