Update neofetch
Fixing shellcheck warnings mentioned in https://github.com/dylanaraps/neofetch/pull/2225#issuecomment-1296876166
This commit is contained in:
parent
a52c49380d
commit
ca13eb22e7
1 changed files with 8 additions and 8 deletions
16
neofetch
16
neofetch
|
@ -2812,22 +2812,22 @@ get_memory() {
|
||||||
mem_label=TiB
|
mem_label=TiB
|
||||||
memory_unit_divider=$((1024 * 1024))
|
memory_unit_divider=$((1024 * 1024))
|
||||||
printf -v mem_used "%'.*f" \
|
printf -v mem_used "%'.*f" \
|
||||||
${mem_precision} \
|
"${mem_precision}" \
|
||||||
$(($mem_used / $memory_unit_divider)).$(($mem_used % $memory_unit_divider))
|
$((mem_used / memory_unit_divider)).$((mem_used % memory_unit_divider))
|
||||||
printf -v mem_total "%'.*f" \
|
printf -v mem_total "%'.*f" \
|
||||||
${mem_precision} \
|
"${mem_precision}" \
|
||||||
$(($mem_total / $memory_unit_divider)).$(($mem_total % $memory_unit_divider))
|
$((mem_total / memory_unit_divider)).$((mem_total % memory_unit_divider))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gib)
|
gib)
|
||||||
mem_label=GiB
|
mem_label=GiB
|
||||||
memory_unit_divider=1024
|
memory_unit_divider=1024
|
||||||
printf -v mem_used "%'.*f" \
|
printf -v mem_used "%'.*f" \
|
||||||
${mem_precision} \
|
"${mem_precision}" \
|
||||||
$(($mem_used / $memory_unit_divider)).$(($mem_used % $memory_unit_divider))
|
$((mem_used / memory_unit_divider)).$((mem_used % memory_unit_divider))
|
||||||
printf -v mem_total "%'.*f" \
|
printf -v mem_total "%'.*f" \
|
||||||
${mem_precision} \
|
"${mem_precision}" \
|
||||||
$(($mem_total / $memory_unit_divider)).$(($mem_total % $memory_unit_divider))
|
$((mem_total / memory_unit_divider)).$((mem_total % memory_unit_divider))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
kib)
|
kib)
|
||||||
|
|
Loading…
Reference in a new issue