Chore: Revise comments
This commit is contained in:
parent
56b1b2c9c8
commit
0e8ca10665
7
xrsbd
7
xrsbd
@ -24,8 +24,9 @@ main() {
|
|||||||
|
|
||||||
# Cache module values so we can reuse them without recomputing them
|
# Cache module values so we can reuse them without recomputing them
|
||||||
local -A stat_cache
|
local -A stat_cache
|
||||||
# Since stat_cache is hash ordered, maintain the display order of cache keys
|
# Since stat_cache is hash ordered, maintain the display order (as defined
|
||||||
# so we can loop over the cache in display order to generate the full status
|
# by mod_list) of the keys so we can loop over the cache in display order
|
||||||
|
# when generating the full status
|
||||||
local -a stat_ordered_keys
|
local -a stat_ordered_keys
|
||||||
local mod mod_file key
|
local mod mod_file key
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ main() {
|
|||||||
# Process each action
|
# Process each action
|
||||||
for path in "${actions[@]}"; do
|
for path in "${actions[@]}"; do
|
||||||
key="${path:$((ACTION_DIR_LEN + 1))}"
|
key="${path:$((ACTION_DIR_LEN + 1))}"
|
||||||
# Call the module function if cache entry for the module is defined
|
# Call the module function if the cache entry for the module is defined
|
||||||
if [[ -v stat_cache[${key}] ]]; then
|
if [[ -v stat_cache[${key}] ]]; then
|
||||||
stat_cache["${key}"]="$("mod_${key}")"
|
stat_cache["${key}"]="$("mod_${key}")"
|
||||||
do_redraw=1
|
do_redraw=1
|
||||||
|
Loading…
Reference in New Issue
Block a user