Chore: Fix formatting

This commit is contained in:
Narvin Singh 2021-01-18 14:11:11 -05:00
parent fdeb1696d0
commit 6c8cf878f7
2 changed files with 3 additions and 3 deletions

4
avdd
View File

@ -78,7 +78,7 @@ for mod in "${mods[@]}"; do
fi fi
done done
# Construct and display the status by looping over the cached values in order # Construct and display the status by looping over the cached values in order
draw_status() { draw_status() {
local mod stat local mod stat
for mod in "${stat_cache_ordered_mods[@]}"; do for mod in "${stat_cache_ordered_mods[@]}"; do
@ -100,7 +100,7 @@ draw_status
# function to get the new value for that section of the status bar. If any # function to get the new value for that section of the status bar. If any
# of the new values are different from the cached ones, update the cache # of the new values are different from the cached ones, update the cache
# and redraw the status bar once after all the mods are processed. # and redraw the status bar once after all the mods are processed.
process_mods () { process_mods() {
local mod new_val is_changed local mod new_val is_changed
for mod in "$@"; do for mod in "$@"; do
if [[ -v stat_cache[${mod}] ]]; then if [[ -v stat_cache[${mod}] ]]; then

2
avds
View File

@ -47,7 +47,7 @@ DAEMON=avdd
FIFO=/tmp/"${DAEMON}"-fifo-"$("$(dirname "$0")"/rpid)" FIFO=/tmp/"${DAEMON}"-fifo-"$("$(dirname "$0")"/rpid)"
# Convert integer milliseconds to floating point seconds # Convert integer milliseconds to floating point seconds
ms_to_s () { ms_to_s() {
printf '%.3f' "${1}e-3" printf '%.3f' "${1}e-3"
} }