Chore: Fix formatting
This commit is contained in:
parent
fdeb1696d0
commit
6c8cf878f7
2
avdd
2
avdd
@ -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
2
avds
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user