Skip to content

Commit 239ec44

Browse files
committed
v0.8.23 Added Raspberry Pi temperature reporting and fix for freezing
1 parent d4933fd commit 239ec44

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v0.8.23
4+
5+
* Added: Support for Raspberry Pi cpu temperature reporting
6+
* Fixed: Decreased chance of read command stalling on lower spec systems
7+
* Added: Failover to nproc if lscpu are reporting 0 cpu cores
8+
* Changed: Moved page display for options and help to bottom and changed to Page Up/Down for changing page
9+
310
## v0.8.22
411

512
* Added: Sorting option "tree", shows processes in a tree structure

bashtop

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ banner=(
6464
"██╔══██╗██╔══██║╚════██║██╔══██║ ██║ ██║ ██║██╔═══╝ "
6565
"██████╔╝██║ ██║███████║██║ ██║ ██║ ╚██████╔╝██║ "
6666
"╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ")
67-
declare version="0.8.22"
67+
declare version="0.8.23"
6868
declare banner_width=${#banner[0]}
6969
banner_colors=("#E62525" "#CD2121" "#B31D1D" "#9A1919" "#801414")
7070

@@ -2858,7 +2858,8 @@ help_() { #? Shows the help overlay
28582858
create_box -v help_out -w 72 -h $((height+3)) -l $((line++)) -c $((col++)) -fill -lc ${theme[div_line]} -title "help"
28592859

28602860
if [[ -n $pages ]]; then
2861-
print -v help_out -m $((line-1)) $((col+72-17)) -rs -fg ${theme[div_line]} -t "" -fg ${theme[hi_fg]} -b -t "" -fg ${theme[title]} -t " page ${page}/${pages} " -fg ${theme[hi_fg]} -t "" -rs -fg ${theme[div_line]} -t ""
2861+
print -v help_out -m $((line+height+1)) $((col+72-16)) -rs -fg ${theme[div_line]} -t "" -fg ${theme[title]} -b -t "pg" -fg ${theme[hi_fg]} -t ""\
2862+
-fg ${theme[title]} -t " ${page}/${pages} " -fg ${theme[title]} -t "pg" -fg ${theme[hi_fg]} -t "" -rs -fg ${theme[div_line]} -t ""
28622863
fi
28632864
((++col))
28642865

@@ -2884,8 +2885,8 @@ help_() { #? Shows the help overlay
28842885

28852886
if [[ -n $pages ]]; then
28862887
case $help_key in
2887-
right) if ((page<pages)); then ((page++)); else page=1; fi; redraw=1; unset help_key ;;
2888-
left) if ((page>1)); then ((page--)); else page=${pages}; fi; redraw=1; unset help_key ;;
2888+
down|page_down) if ((page<pages)); then ((page++)); else page=1; fi; redraw=1; unset help_key ;;
2889+
up|page_up) if ((page>1)); then ((page--)); else page=${pages}; fi; redraw=1; unset help_key ;;
28892890
esac
28902891
fi
28912892

@@ -3025,11 +3026,11 @@ options_() { #? Shows the options overlay
30253026
draw_banner "$((tty_height/2-11))" options_misc
30263027
create_box -v options_misc -w 29 -h $((height*2+2)) -l $line -c $((col-1)) -fill -lc ${theme[div_line]} -title "options"
30273028
if [[ -n $pages ]]; then
3028-
print -v options_misc -m $((line)) $((col+29-17)) -rs -fg ${theme[div_line]} -t "" -fg ${theme[hi_fg]} -b -t "p" -fg ${theme[title]} -t " page ${page}/${pages} " -fg ${theme[hi_fg]} -t "n" -rs -fg ${theme[div_line]} -t ""
3029+
print -v options_misc -m $((line+height*2+1)) $((col+29-16)) -rs -fg ${theme[div_line]} -t "" -fg ${theme[title]} -b -t "pg" -fg ${theme[hi_fg]} -t ""\
3030+
-fg ${theme[title]} -t " ${page}/${pages} " -fg ${theme[title]} -t "pg" -fg ${theme[hi_fg]} -t "" -rs -fg ${theme[div_line]} -t ""
30293031
fi
30303032
fi
30313033

3032-
30333034
if [[ -n $keypress || -z $options_out ]]; then
30343035
unset options_out desc_height lr inp valid
30353036
selected="${options_array[selected_int]}"
@@ -3119,8 +3120,8 @@ options_() { #? Shows the options overlay
31193120
up|shift_tab) if ((selected_int>0)); then ((selected_int--)); else selected_int=$((${#options_array[@]}-1)); fi ;;
31203121
left|right) if [[ -n $lr && -z $inputting ]]; then valid=1; fi ;;
31213122
enter) if [[ -n $inp ]]; then valid=1; fi ;;
3122-
n) if ((page<pages)); then ((page++)); else page=1; selected_int=0; fi; redraw_misc=1; selected_int=$(( (page-1)*height )) ;;
3123-
p) if ((page>1)); then ((page--)); else page=${pages}; fi; redraw_misc=1; selected_int=$(( (page-1)*height )) ;;
3123+
page_down) if ((page<pages)); then ((page++)); else page=1; selected_int=0; fi; redraw_misc=1; selected_int=$(( (page-1)*height )) ;;
3124+
page_up) if ((page>1)); then ((page--)); else page=${pages}; fi; redraw_misc=1; selected_int=$(( (page-1)*height )) ;;
31243125
esac
31253126
if (( selected_int<(page-1)*height | selected_int>=page*height )); then page=$(( (selected_int/height)+1 )); redraw_misc=1; fi
31263127
fi

0 commit comments

Comments
 (0)