Skip to content

Commit

Permalink
fixed mempool stats
Browse files Browse the repository at this point in the history
  • Loading branch information
orpheus-antpool committed Sep 24, 2021
1 parent 2d53073 commit fe83463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/gLiveView.sh
Expand Up @@ -898,7 +898,7 @@ while true; do
printf "${VL} Processed TX : ${style_values_1}%s${NC}" "${tx_processed}" && tput cup ${line} ${second_col}
printf "%-$((width-second_col))s" " Out In" && tput cup ${line} ${third_col}
printf "%-$((width-third_col))s${NC}${VL}\n" " Live Heap" && ((line++))
printf "${VL} Mempool TX/Bytes : ${style_values_1}%s${NC} / ${style_values_1}%s${NC}" "${mempool_tx}" "${mempool_bytes}" && tput cup ${line} ${second_col}
printf "${VL} Mempool TX/Bytes : ${style_values_1}%s${NC} / ${style_values_1}%s${NC}%$((second_col-24-${#mempool_tx}-${#mempool_bytes}))s" "${mempool_tx}" "${mempool_bytes}"
printf -v mem_live_gb "%.1fG" "$(bc -l <<<"(${mem_live}/1073741824)")"
printf -v mem_heap_gb "%.1fG" "$(bc -l <<<"(${mem_heap}/1073741824)")"
printf "Peers: ${style_values_1}%3s %3s${NC}" "${peers_out}" "${peers_in}" && tput cup ${line} ${third_col}
Expand Down

0 comments on commit fe83463

Please sign in to comment.