Misc: Fix 100 character limit
This commit is contained in:
parent
0168516a2c
commit
ed0b0a9746
1 changed files with 5 additions and 3 deletions
8
neofetch
8
neofetch
|
@ -2270,8 +2270,10 @@ get_memory() {
|
||||||
|
|
||||||
"Solaris")
|
"Solaris")
|
||||||
hw_pagesize="$(pagesize)"
|
hw_pagesize="$(pagesize)"
|
||||||
mem_total="$(($(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}') * hw_pagesize / 1024 / 1024))"
|
pages_total=$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')
|
||||||
mem_free="$(($(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}') * hw_pagesize / 1024 / 1024))"
|
pages_free=$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')
|
||||||
|
mem_total="$((pages_total * hw_pagesize / 1024 / 1024))"
|
||||||
|
mem_free="$((pages_free * hw_pagesize / 1024 / 1024))"
|
||||||
mem_used="$((mem_total - mem_free))"
|
mem_used="$((mem_total - mem_free))"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -2359,7 +2361,7 @@ get_song() {
|
||||||
|
|
||||||
printf -v players "|%s" "${players[@]}"
|
printf -v players "|%s" "${players[@]}"
|
||||||
player="$(ps aux | awk -v pattern="(${players:1})" \
|
player="$(ps aux | awk -v pattern="(${players:1})" \
|
||||||
'!/ awk / && !/iTunesHelper/ && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
'!/ awk / && !/iTunesHelper/ && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
||||||
|
|
||||||
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
||||||
player="$music_player"
|
player="$music_player"
|
||||||
|
|
Loading…
Reference in a new issue