Skip to content

Commit

Permalink
improve 'about' report formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Oct 11, 2024
1 parent 163cd51 commit d1589c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions support/sherpa-manager.source
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,13 @@ DebugLogEnv()
FuncInit

ShowAsProc 'log env'
DebugInfoMinSepr

if [[ $useropt_show_about = true || $useropt_show_aboutall = true ]]; then
useropt_debug=true
useropt_verbose=true
fi

DebugInfoMinSepr
DebugHardware ok 'NAS model' "$(get_display_name)"
DebugHardware ok CPU "$(HardwareGetCPUInfo)"
DebugHardware ok 'CPU cores' "$r_cpu_cores"
Expand Down Expand Up @@ -890,29 +890,29 @@ DebugLogEnv()
DebugQpkg detect "$(ShowAsPackageName IncreaseTimeouts)" N/A
fi

DebugInfoMinSepr

if [[ $useropt_show_about = true ]]; then
useropt_debug=false
useropt_verbose=false
return
fi

[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog "/bin/df -h | /bin/grep '^Filesystem\|^none\|^tmpfs\|ram'" "$r_ramfs_freespace_pathfile"
DebugInfoMinSepr
RunAndLog "/usr/sbin/screen -ls" "$r_screen_sessions_pathfile" '' 1
DebugInfoMinSepr
[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog "/usr/sbin/screen -ls | /bin/sed '/^[[:space:]]*$/d'" "$r_screen_sessions_pathfile" '' 1
[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog '/usr/bin/free' "$r_ram_freeused_pathfile" '' 1
DebugInfoMinSepr
[[ $useropt_show_aboutall = false ]] && DebugInfoMinSepr
RunAndLog "/bin/grep -i 'out of memory\|oom-killer' /mnt/HDA_ROOT/.logs/kmsg" "$r_oom_log_pathfile" '' 1
DebugInfoMinSepr

if [[ $useropt_show_aboutall = true ]]; then
useropt_debug=false
useropt_verbose=false
return
fi

DebugInfoMinSepr

FuncExit

}
Expand Down

0 comments on commit d1589c2

Please sign in to comment.