Merge pull request #2 from Tearran/alpha

modified:   lib/config/benchymark.sh
This commit is contained in:
Joseph Turner
2023-07-16 11:26:46 -07:00
committed by GitHub

View File

@@ -23,7 +23,7 @@
#
# @stdout tobd.
benchymark::see_monitor(){
[[ $1 == "" ]] && clear && armbianmonitor -M ;
[[ $1 == "" ]] && clear && armbianmonitor -h ;
[[ $1 == $1 ]] && armbianmonitor "$1" ;
exit 0
}
@@ -50,28 +50,12 @@ benchymark::see_monitor(){
# @exitcode 0 If successful.
#
# @stdout tobd.
benchymark::see_boot_blame(){
benchymark::see_boot_times(){
[[ $1 == "" ]] && sys_blame=$( systemd-analyze -h ) ;
[[ $1 == "blame" ]] && sys_blame=$( systemd-analyze blame ) ;
[[ $1 == "time" || $1 == "" ]] && sys_blame=$( systemd-analyze time ) ;
[[ $1 == "time" ]] && sys_blame=$( systemd-analyze time ) ;
[[ $1 == "chain" ]] && sys_blame=$( systemd-analyze critical-chain ) ;
printf '%s\n' "${sys_blame[@]}"
exit 0
}
# @description 7-zip benchmark based on original armbianmonitor logic.
#
# @example
# benchymark::see_7ZipBench
# echo $?
# #Output
# TBD
#
# @exitcode 0 If successful.
#
# @stdout tobd.
benchymark::see_7ZipBench() {
echo -e "Preparing benchmark. Be patient please..."
[[ $1 == "" ]] && armbianmonitor -z ;
}