diff --git a/.conf/desktop/apps/opentyrian.desktop b/.conf/desktop/apps/opentyrian.desktop
index c09b7d95fc..4d2d0efa7a 100644
--- a/.conf/desktop/apps/opentyrian.desktop
+++ b/.conf/desktop/apps/opentyrian.desktop
@@ -2,7 +2,7 @@
Type=Application
Name=OpenTyrian
Comment=An arcade-style shoot 'em up
-Icon=/usr/local/games/opentyrian/linux/icons/tyrian-48.png
+Icon=/usr/games/opentyrian/linux/icons/tyrian-48.png
Categories=Game;ArcadeGame;
-Exec=/usr/local/games/opentyrian/run
+Exec=/usr/games/opentyrian/run
Terminal=false
diff --git a/.conf/desktop/lxqt/lxqt-buster.7z b/.conf/desktop/lxqt/lxqt-buster.7z
new file mode 100644
index 0000000000..2c55cd37a7
Binary files /dev/null and b/.conf/desktop/lxqt/lxqt-buster.7z differ
diff --git a/.conf/desktop/lxqt/lxqt-stretch.7z b/.conf/desktop/lxqt/lxqt-stretch.7z
new file mode 100644
index 0000000000..119d1045a9
Binary files /dev/null and b/.conf/desktop/lxqt/lxqt-stretch.7z differ
diff --git a/.conf/dps_114/apache.nextcloud.conf b/.conf/dps_114/apache.nextcloud.conf
index 6d6e8e33fe..2f6d842044 100644
--- a/.conf/dps_114/apache.nextcloud.conf
+++ b/.conf/dps_114/apache.nextcloud.conf
@@ -15,7 +15,4 @@ Redirect permanent /ocs-provider /nextcloud/ocs-provider
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
- # Hard coding 128M OPCache size, only for /nextcloud, to suppress warning on nextcloud admin panel.
- php_admin_value opcache.memory_consumption 128
-
diff --git a/.conf/dps_114/lighttpd.nextcloud.conf b/.conf/dps_114/lighttpd.nextcloud.conf
index 489d1862a5..d7337c9267 100644
--- a/.conf/dps_114/lighttpd.nextcloud.conf
+++ b/.conf/dps_114/lighttpd.nextcloud.conf
@@ -16,7 +16,7 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
# - Files
$HTTP["url"] =~ "^/nextcloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
- dir-listing.active = "disable"
+ dir-listing.activate = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/nextcloud/.*\.(css|js|woff2?|svg|gif)$" {
setenv.add-response-header += (
@@ -30,7 +30,4 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
)
}
- # Solve OPcache settings warning on Nextcloud admin panel
- setenv.add-environment += ( "PHP_ADMIN_VALUE" => "opcache.memory_consumption=128" )
-
}
diff --git a/.conf/dps_114/nginx.nextcloud.conf b/.conf/dps_114/nginx.nextcloud.conf
index 057e9f4742..b9081fac72 100644
--- a/.conf/dps_114/nginx.nextcloud.conf
+++ b/.conf/dps_114/nginx.nextcloud.conf
@@ -60,8 +60,6 @@ location ^~ /nextcloud {
fastcgi_intercept_errors on;
# Disable on Jessie, because Jessie Nginx does not support this directive
#fastcgi_request_buffering off;
- # Hard coding 128M OPCache size to suppress warning on Nextcloud admin panel.
- fastcgi_param PHP_ADMIN_VALUE "opcache.memory_consumption=128";
}
location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) {
diff --git a/.conf/dps_121/roonbridge.service b/.conf/dps_121/roonbridge.service
index 531b1091a9..111937a921 100644
--- a/.conf/dps_121/roonbridge.service
+++ b/.conf/dps_121/roonbridge.service
@@ -1,10 +1,8 @@
[Unit]
-Description=Roon Bridge
+Description=Roon Bridge (DietPi)
After=network.target sound.target
[Service]
-Type=simple
-User=root
Group=dietpi
Environment=ROON_DATAROOT=/mnt/dietpi_userdata/roon
Environment=ROON_ID_DIR=/mnt/dietpi_userdata/roon
diff --git a/.conf/dps_36/squeezelite.service b/.conf/dps_36/squeezelite.service
index e4fc683d62..9971e7a702 100644
--- a/.conf/dps_36/squeezelite.service
+++ b/.conf/dps_36/squeezelite.service
@@ -1,8 +1,7 @@
[Unit]
-Description=squeezelite
+Description=SqueezeLite (DietPi)
[Service]
-Type=simple
ExecStart=/usr/bin/squeezelite -a 4096:1024:16:0 -C 5 -n 'DietPi-Squeezelite' -f /var/log/squeezelite.log
[Install]
diff --git a/.conf/dps_47/lighttpd.owncloud.conf b/.conf/dps_47/lighttpd.owncloud.conf
index 0f6211d132..d225c7ff3b 100644
--- a/.conf/dps_47/lighttpd.owncloud.conf
+++ b/.conf/dps_47/lighttpd.owncloud.conf
@@ -10,7 +10,7 @@ $HTTP["url"] =~ "^/owncloud($|/)" {
# - Files
$HTTP["url"] =~ "^/owncloud/(\.|autotest|occ|issue|indie|db_|console)" { url.access-deny = ("") }
# - Directory listing
- dir-listing.active = "disable"
+ dir-listing.activate = "disable"
# - Cache control and security headers for static resources
$HTTP["url"] =~ "^/owncloud/.+\.(css|js)" {
setenv.add-response-header += (
diff --git a/.conf/dps_51/run b/.conf/dps_51/run
index 9f439918ae..3a6f1533f1 100644
--- a/.conf/dps_51/run
+++ b/.conf/dps_51/run
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/dash
#////////////////////////////////////
# DietPi OpenTyrian Run Script
#
@@ -12,15 +12,16 @@
# Usage:
# run
#////////////////////////////////////
+FP_DIR='/usr/games/opentyrian'
-#Xserver already running
-if (($(pidof X) >= 0)); then
+# Xserver already running
+if pgrep Xorg &> /dev/null; then
- /usr/local/games/opentyrian/opentyrian -t /usr/local/games/opentyrian/data
+ $FP_DIR/opentyrian -t $FP_DIR/data
-#No X (init X server)
+# No X (init X server)
else
- xinit /usr/local/games/opentyrian/opentyrian -t /usr/local/games/opentyrian/data
+ xinit $FP_DIR/opentyrian -t $FP_DIR/data
fi
diff --git a/.conf/dps_85/nginx.conf b/.conf/dps_85/nginx.conf
index 863d8e8b48..b6cabc61f7 100644
--- a/.conf/dps_85/nginx.conf
+++ b/.conf/dps_85/nginx.conf
@@ -30,7 +30,7 @@ http {
# Upstream to abstract back-end connection(s) for PHP
upstream php {
- server unix:/run/php/php7.0-fpm.sock;
+ server unix:/run/php/php7.3-fpm.sock;
}
# Set the mime-types via the mime.types external file
@@ -42,7 +42,7 @@ http {
# Click tracking!
access_log off;
- # Hide nginx version
+ # Hide Nginx version
server_tokens off;
# ~2 seconds is often enough for HTML/CSS, but connections in
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index ddec9ccc0b..e7af2f218e 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -18,7 +18,8 @@ about: Create a report to help us improve
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
-- `dietpi-bugreport` ID | `sed -n 5p /DietPi/dietpi/.hw_model`
+
+- Bug report ID | `sed -n 5p /DietPi/dietpi/.hw_model`
#### Steps to reproduce
diff --git a/.meta/dietpi-cloud-migration b/.meta/dietpi-cloud-migration
index 992fe4e9fd..cb07eddffd 100644
--- a/.meta/dietpi-cloud-migration
+++ b/.meta/dietpi-cloud-migration
@@ -1,17 +1,20 @@
#!/bin/bash
-(( $UID )) && echo -e '[\e[31mFAILED\e[0m] Root privileges required. Please run the script with "sudo".\n' && exit 1
+(( $UID )) && echo -e '[\e[31mFAILED\e[0m] Root privileges required. Please run the script with "sudo".' && exit 1
echo -e '[\e[32m OK \e[0m] Root privileges verified.'
-! apt-get install -y rsync && echo -e '[\e[31mFAILED\e[0m] "rsync" install failed. Please check your internet connection, proper apt-get function or try to install it manually: "apt-get install -y rsync"\n' && exit 1
+! apt-get install -y rsync && echo -e '[\e[31mFAILED\e[0m] "rsync" install failed. Please check your internet connection, proper apt-get function or try to install it manually: "apt install rsync"' && exit 1
echo -e '[\e[32m OK \e[0m] Successfully installed rsync.'
+systemctl start mariadb &> /dev/null || systemctl start mysql &> /dev/null || { echo -e '[\e[31mFAILED\e[0m] Could not start MariaDB server. Aborting...'; exit 1; }
+echo -e '[\e[32m OK \e[0m] Successfully started MariaDB.'
+
run_backup(){
fp_config="/var/www/$1/config/config.php"
echo '[ INFO ] Enabling maintenance mode...'
- ! sudo -u www-data php /var/www/$1/occ maintenance:mode --on && echo -e '[\e[31mFAILED\e[0m] Could not enable maintenance mode, please check running state of your instance and PHP functionality.\n' && exit 1
+ ! sudo -u www-data php /var/www/$1/occ maintenance:mode --on && echo -e '[\e[31mFAILED\e[0m] Could not enable maintenance mode, please check running state of your instance and PHP functionality.' && exit 1
echo "[ INFO ] Scanning $fp_config for necessary information..."
local fp_datadir=$(grep -m1 "^[[:blank:]]*'datadirectory'" $fp_config | cut -d \' -f 4)
@@ -26,19 +29,19 @@ run_backup(){
- database password: $dbpass"
echo '[ INFO ] Backup database to data directory...'
- ! mysqldump -u"$dbuser" -h"$dbhost" -p"$dbpass" "$dbname" > "$fp_datadir"/dietpi-$1-database-backup.sql && echo -e '[\e[31mFAILED\e[0m] Database backup failed, please check state of your database server, check logs and in case repair table corruptions.\n' && exit 1
+ ! mysqldump -u"$dbuser" -h"$dbhost" -p"$dbpass" "$dbname" > "$fp_datadir"/dietpi-$1-database-backup.sql && echo -e '[\e[31mFAILED\e[0m] Database backup failed, please check state of your database server, check logs and in case repair table corruptions.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully finished database backup to: $fp_datadir/dietpi-$1-database-backup.sql"
echo '[ INFO ] Backup installation folder to data directory...'
- ! rsync -aHp --delete /var/www/$1/ "$fp_datadir"/dietpi-$1-installation-backup && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.\n' && exit 1
+ ! rsync -aHp --delete /var/www/$1/ "$fp_datadir"/dietpi-$1-installation-backup && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully finished installation backup to: $fp_datadir/dietpi-$1-installation-backup/"
if [[ $2 ]]; then
echo '[ INFO ] You provided an additional backup location. Moving data directory...'
- [[ ! -d $2 ]] && echo -e "[\e[31mFAILED\e[0m] $2 is no existing directory, please check spelling and mount status of your desired backup drive.\n" && exit 1
+ [[ ! -d $2 ]] && echo -e "[\e[31mFAILED\e[0m] $2 is no existing directory, please check spelling and mount status of your desired backup drive." && exit 1
- ! rsync -aHp --delete "$fp_datadir"/ "$2" && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.\n' && exit 1
+ ! rsync -aHp --delete "$fp_datadir"/ "$2" && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully synced data directory to: $2"
else
@@ -53,18 +56,20 @@ run_backup(){
### MAIN ###
-if [[ -f /var/www/owncloud/config/config.php ]]; then
+if [[ -f '/var/www/owncloud/config/config.php' ]]; then
echo '[ INFO ] ownCloud installation found, preparing backup...'
run_backup owncloud "$1"
fi
-if [[ -f /var/www/nextcloud/config/config.php ]]; then
+if [[ -f '/var/www/nextcloud/config/config.php' ]]; then
echo '[ INFO ] Nextcloud installation found, preparing backup...'
run_backup nextcloud "$1"
fi
-[[ ! $fp_config ]] && echo -e '[\e[31mFAILED\e[0m] No ownCloud or Nextcloud instance found at /var/www/owncloud|nextcloud. Aborting...\n' && exit 1
+[[ ! $fp_config ]] && echo -e '[\e[31mFAILED\e[0m] No ownCloud or Nextcloud instance found at /var/www/owncloud|nextcloud. Aborting...' && exit 1
+
+exit 0
diff --git a/.meta/dietpi-survey_report b/.meta/dietpi-survey_report
index 52a1862581..68a81f61cb 100644
--- a/.meta/dietpi-survey_report
+++ b/.meta/dietpi-survey_report
@@ -18,6 +18,7 @@
aHW_NAME[12]='Odroid C2'
aHW_NAME[13]='Odroid U3'
aHW_NAME[14]='Odroid N1'
+ aHW_NAME[15]='Odroid N2'
aHW_NAME[20]='VM x64 (VMware VirtualBox)'
aHW_NAME[21]='x86_64 native (PC)'
aHW_NAME[22]='Generic device (eg: unknown to DietPi)'
@@ -53,13 +54,15 @@
aHW_NAME[70]='Sparky SBC'
aHW_NAME[71]='Beagle Bone Black'
- aBENCH_COMMON_INDEX=()
-
+ # - Core Benchmarks
+ aBENCH_CPU_INDEX=()
+ aBENCH_RAM_INDEX=()
+ aBENCH_ROOTFS_INDEX=()
# - Optional benchmarks
aBENCH_LAN_INDEX=()
aBENCH_CUSTOMFS_INDEX=()
- #[$HW_MODEL,${aBENCH_COMMON_INDEX[$HW_MODEL]}]
+ #[$HW_MODEL,${aBENCH_XX_INDEX[$HW_MODEL]}]
declare -A aBENCH_CPU
declare -A aBENCH_ROOTFS_WRITE
declare -A aBENCH_ROOTFS_READ
@@ -74,7 +77,7 @@
declare -A aBENCH_NET_LAN_SPEED
#Results
- BENCH_RESULTS_CPU_SCALE=2
+ BENCH_RESULTS_CPU_SCALE=1
aBENCH_RESULT_CPU_MIN=()
aBENCH_RESULT_CPU_MAX=()
aBENCH_RESULT_CPU_AVG=()
@@ -376,14 +379,21 @@
aSOFTWARE_NAME6_20[171]='DietPi-NordVPN'
aSOFTWARE_NAME6_20[172]='WireGuard'
- # - v6.21 + v6.22
+ # - v6.21 + v6.22 + v6.23
+ aSOFTWARE_NAME6_21=()
+ aSOFTWARE_NAME6_22=()
+ aSOFTWARE_NAME6_23=()
for i in ${!aSOFTWARE_NAME6_20[@]}
do
aSOFTWARE_NAME6_21[$i]=${aSOFTWARE_NAME6_20[$i]}
aSOFTWARE_NAME6_22[$i]=${aSOFTWARE_NAME6_21[$i]}
+ aSOFTWARE_NAME6_23[$i]=${aSOFTWARE_NAME6_22[$i]}
done
+ aSOFTWARE_NAME6_23[173]='LXQt'
+ aSOFTWARE_NAME6_23[174]='GIMP'
+ aSOFTWARE_NAME6_23[175]='XFCE Power Manager'
Main(){
@@ -416,36 +426,56 @@
if [[ $G_DEBUG == 1 ]]; then
- echo "DEBUG Benchmark: $file"
- echo "BENCH_VERSION=$BENCH_VERSION | BENCH_HW_MODEL=$BENCH_HW_MODEL BENCH_CPU=$BENCH_CPU | BENCH_ROOTFS_WRITE=$BENCH_ROOTFS_WRITE | BENCH_ROOTFS_READ=$BENCH_ROOTFS_READ | BENCH_RAM_WRITE=$BENCH_RAM_WRITE | BENCH_RAM_READ=$BENCH_RAM_READ | BENCH_CPU_TEMP_START=$BENCH_CPU_TEMP_START | BENCH_CPU_TEMP_END=$BENCH_CPU_TEMP_END | BENCH_CUSTOMFS_WRITE=$BENCH_CUSTOMFS_WRITE | BENCH_CUSTOMFS_READ=$BENCH_CUSTOMFS_READ | BENCH_NET_LAN_SPEED=$BENCH_NET_LAN_SPEED"
+ echo "DEBUG $file: BENCH_VERSION=$BENCH_VERSION | BENCH_HW_MODEL=$BENCH_HW_MODEL BENCH_CPU=$BENCH_CPU | BENCH_ROOTFS_WRITE=$BENCH_ROOTFS_WRITE | BENCH_ROOTFS_READ=$BENCH_ROOTFS_READ | BENCH_RAM_WRITE=$BENCH_RAM_WRITE | BENCH_RAM_READ=$BENCH_RAM_READ | BENCH_CPU_TEMP_START=$BENCH_CPU_TEMP_START | BENCH_CPU_TEMP_END=$BENCH_CPU_TEMP_END | BENCH_CUSTOMFS_WRITE=$BENCH_CUSTOMFS_WRITE | BENCH_CUSTOMFS_READ=$BENCH_CUSTOMFS_READ | BENCH_NET_LAN_SPEED=$BENCH_NET_LAN_SPEED"
fi
- #Common benchmarks
- # - Check for all expected values based on how we handle them, only add entry if valid for all.
+ # - CPU
if [[ ${BENCH_CPU//.*} =~ ^-?[0-9]+$ &&
- ${BENCH_ROOTFS_WRITE//.*} =~ ^-?[0-9]+$ && ${BENCH_ROOTFS_READ//.*} =~ ^-?[0-9]+$ &&
- ${BENCH_RAM_WRITE//.*} =~ ^-?[0-9]+$ && ${BENCH_RAM_READ//.*} =~ ^-?[0-9]+$ &&
- $BENCH_CPU_TEMP_START && $BENCH_CPU_TEMP_END ]]; then
+ $BENCH_CPU_TEMP_START =~ ^-?[0-9]+$ && $BENCH_CPU_TEMP_END =~ ^-?[0-9]+$ ]]; then
+
+ aBENCH_CPU[$BENCH_HW_MODEL,${aBENCH_CPU_INDEX[$BENCH_HW_MODEL]:=0}]=$BENCH_CPU
+
+ # - Patch for 5 digit CPU temp's: https://github.com/MichaIng/DietPi/issues/2715
+ (( ${BENCH_CPU_TEMP_START//.*} > 130 )) && (( BENCH_CPU_TEMP_START /= 1000 ))
+ (( ${BENCH_CPU_TEMP_END//.*} > 130 )) && (( BENCH_CPU_TEMP_END /= 1000 ))
+ # ------------------------------------------------------------------------------
+
+ aBENCH_CPU_TEMP_START[$BENCH_HW_MODEL,${aBENCH_CPU_INDEX[$BENCH_HW_MODEL]}]=${BENCH_CPU_TEMP_START//.*}
+ aBENCH_CPU_TEMP_END[$BENCH_HW_MODEL,${aBENCH_CPU_INDEX[$BENCH_HW_MODEL]}]=${BENCH_CPU_TEMP_END//.*}
+
+ ((aBENCH_CPU_INDEX[$BENCH_HW_MODEL]++))
+
+ fi
+
+ # - RootFS
+ if [[ ${BENCH_ROOTFS_WRITE//.*} =~ ^-?[0-9]+$ && ${BENCH_ROOTFS_READ//.*} =~ ^-?[0-9]+$ ]]; then
+
+ aBENCH_ROOTFS_WRITE[$BENCH_HW_MODEL,${aBENCH_ROOTFS_INDEX[$BENCH_HW_MODEL]:=0}]=${BENCH_ROOTFS_WRITE//.*}
+ aBENCH_ROOTFS_READ[$BENCH_HW_MODEL,${aBENCH_ROOTFS_INDEX[$BENCH_HW_MODEL]}]=${BENCH_ROOTFS_READ//.*}
+
+ ((aBENCH_ROOTFS_INDEX[$BENCH_HW_MODEL]++))
+
+ fi
- aBENCH_CPU[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]:=0}]=$BENCH_CPU
- aBENCH_ROOTFS_WRITE[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]}]=${BENCH_ROOTFS_WRITE//.*}
- aBENCH_ROOTFS_READ[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]}]=${BENCH_ROOTFS_READ//.*}
- aBENCH_RAM_WRITE[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]}]=${BENCH_RAM_WRITE//.*}
- aBENCH_RAM_READ[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]}]=${BENCH_RAM_READ//.*}
- aBENCH_CPU_TEMP_START[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]}]=${BENCH_CPU_TEMP_START//.*}
- aBENCH_CPU_TEMP_END[$BENCH_HW_MODEL,${aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]}]=${BENCH_CPU_TEMP_END//.*}
+ # - RAM
+ # - https://github.com/MichaIng/DietPi/issues/2715 | nullify this score and ignore it in min/max/avg processing.
+ if (( $BENCH_VERSION >= 2 )) &&
+ [[ ${BENCH_RAM_WRITE//.*} =~ ^-?[0-9]+$ && ${BENCH_RAM_READ//.*} =~ ^-?[0-9]+$ ]]; then
- ((aBENCH_COMMON_INDEX[$BENCH_HW_MODEL]++))
+ aBENCH_RAM_WRITE[$BENCH_HW_MODEL,${aBENCH_RAM_INDEX[$BENCH_HW_MODEL]:=0}]=${BENCH_RAM_WRITE//.*}
+ aBENCH_RAM_READ[$BENCH_HW_MODEL,${aBENCH_RAM_INDEX[$BENCH_HW_MODEL]}]=${BENCH_RAM_READ//.*}
+
+ ((aBENCH_RAM_INDEX[$BENCH_HW_MODEL]++))
fi
- #Optional benchmarks, handle them in a seperate index array
# - Custom FS
if [[ ${BENCH_CUSTOMFS_WRITE//.*} =~ ^-?[0-9]+$ && ${BENCH_CUSTOMFS_READ//.*} =~ ^-?[0-9]+$ ]]; then
aBENCH_CUSTOMFS_WRITE[$BENCH_HW_MODEL,${aBENCH_CUSTOMFS_INDEX[$BENCH_HW_MODEL]:=0}]=${BENCH_CUSTOMFS_WRITE//.*}
- aBENCH_CUSTOMFS_READ[$BENCH_HW_MODEL,${aBENCH_CUSTOMFS_INDEX[$BENCH_HW_MODEL]}]=${BENCH_CUSTOMFS_READ//.*}
+ aBENCH_CUSTOMFS_READ[$BENCH_HW_MODEL,${aBENCH_CUSTOMFS_INDEX[$BENCH_HW_MODEL]:=0}]=${BENCH_CUSTOMFS_READ//.*}
+
((aBENCH_CUSTOMFS_INDEX[$BENCH_HW_MODEL]++))
fi
@@ -454,6 +484,7 @@
if [[ ${BENCH_NET_LAN_SPEED//.*} =~ ^-?[0-9]+$ ]]; then
aBENCH_NET_LAN_SPEED[$BENCH_HW_MODEL,${aBENCH_LAN_INDEX[$BENCH_HW_MODEL]:=0}]=${BENCH_NET_LAN_SPEED//.*}
+
((aBENCH_LAN_INDEX[$BENCH_HW_MODEL]++))
fi
@@ -484,34 +515,18 @@
# Clean up reports dir
rm -R /tmp/dietpi-survey_report
- #Bench Results, HW_MODEL array:
+ #Process all results, for later use in HTML printout
+ # - NB: HW_MODEL array based
local default_min_value=100000
- for i in ${!aBENCH_COMMON_INDEX[@]}
- do
- local hw_model_supports_cpu_temps=1
+ # - CPU
+ for i in ${!aBENCH_CPU_INDEX[@]}
+ do
- #init results
aBENCH_RESULT_CPU_MIN[$i]=$default_min_value
aBENCH_RESULT_CPU_MAX[$i]=0
aBENCH_RESULT_CPU_AVG[$i]=0
- aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]=$default_min_value
- aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]=0
- aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]=0
-
- aBENCH_RESULT_ROOTFS_READ_MIN[$i]=$default_min_value
- aBENCH_RESULT_ROOTFS_READ_MAX[$i]=0
- aBENCH_RESULT_ROOTFS_READ_AVG[$i]=0
-
- aBENCH_RESULT_RAM_WRITE_MIN[$i]=$default_min_value
- aBENCH_RESULT_RAM_WRITE_MAX[$i]=0
- aBENCH_RESULT_RAM_WRITE_AVG[$i]=0
-
- aBENCH_RESULT_RAM_READ_MIN[$i]=$default_min_value
- aBENCH_RESULT_RAM_READ_MAX[$i]=0
- aBENCH_RESULT_RAM_READ_AVG[$i]=0
-
aBENCH_RESULT_CPU_TEMP_START_MIN[$i]=$default_min_value
aBENCH_RESULT_CPU_TEMP_START_MAX[$i]=0
aBENCH_RESULT_CPU_TEMP_START_AVG[$i]=0
@@ -520,162 +535,176 @@
aBENCH_RESULT_CPU_TEMP_END_MAX[$i]=0
aBENCH_RESULT_CPU_TEMP_END_AVG[$i]=0
- for (( j=0; j<${aBENCH_COMMON_INDEX[$i]}; j++ ))
+ for (( j=0; j<${aBENCH_CPU_INDEX[$i]}; j++ ))
do
- #CPU
# echo "aBENCH_CPU[$i,$j] ${aBENCH_CPU[$i,$j]}"
if (( $(bc -l <<< "${aBENCH_CPU[$i,$j]} < ${aBENCH_RESULT_CPU_MIN[$i]}") )); then
- aBENCH_RESULT_CPU_MIN[$i]=$(bc -l <<< "scale=$BENCH_RESULTS_CPU_SCALE; ${aBENCH_CPU[$i,$j]} * 1")
+ aBENCH_RESULT_CPU_MIN[$i]=$(bc -l <<< "scale=$BENCH_RESULTS_CPU_SCALE; ${aBENCH_CPU[$i,$j]} / 1")
fi
if (( $(bc -l <<< "${aBENCH_CPU[$i,$j]} > ${aBENCH_RESULT_CPU_MAX[$i]}") )); then
- aBENCH_RESULT_CPU_MAX[$i]=$(bc -l <<< "scale=$BENCH_RESULTS_CPU_SCALE; ${aBENCH_CPU[$i,$j]} * 1")
+ aBENCH_RESULT_CPU_MAX[$i]=$(bc -l <<< "scale=$BENCH_RESULTS_CPU_SCALE; ${aBENCH_CPU[$i,$j]} / 1")
fi
aBENCH_RESULT_CPU_AVG[$i]=$(bc -l <<< "${aBENCH_CPU[$i,$j]} + ${aBENCH_RESULT_CPU_AVG[$i]}")
- #RootFS
- # echo "aBENCH_ROOTFS_WRITE[$i,$j] ${aBENCH_ROOTFS_WRITE[$i,$j]}"
- if (( ${aBENCH_ROOTFS_WRITE[$i,$j]} < ${aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]} )); then
+ if (( ${aBENCH_CPU_TEMP_START[$i,$j]} < ${aBENCH_RESULT_CPU_TEMP_START_MIN[$i]} )); then
- aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]=${aBENCH_ROOTFS_WRITE[$i,$j]}
+ aBENCH_RESULT_CPU_TEMP_START_MIN[$i]=${aBENCH_CPU_TEMP_START[$i,$j]}
fi
- if (( ${aBENCH_ROOTFS_WRITE[$i,$j]} > ${aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]} )); then
+ if (( ${aBENCH_CPU_TEMP_START[$i,$j]} > ${aBENCH_RESULT_CPU_TEMP_START_MAX[$i]} )); then
- aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]=${aBENCH_ROOTFS_WRITE[$i,$j]}
+ aBENCH_RESULT_CPU_TEMP_START_MAX[$i]=${aBENCH_CPU_TEMP_START[$i,$j]}
fi
- (( aBENCH_RESULT_ROOTFS_WRITE_AVG[$i] += ${aBENCH_ROOTFS_WRITE[$i,$j]} ))
+ (( aBENCH_RESULT_CPU_TEMP_START_AVG[$i] += ${aBENCH_CPU_TEMP_START[$i,$j]} ))
- # echo "aBENCH_ROOTFS_READ[$i,$j] ${aBENCH_ROOTFS_READ[$i,$j]}"
- if (( ${aBENCH_ROOTFS_READ[$i,$j]} < ${aBENCH_RESULT_ROOTFS_READ_MIN[$i]} )); then
+ # echo "aBENCH_CPU_TEMP_END[$i,$j] ${aBENCH_CPU_TEMP_END[$i,$j]}"
+ if (( ${aBENCH_CPU_TEMP_END[$i,$j]} < ${aBENCH_RESULT_CPU_TEMP_END_MIN[$i]} )); then
- aBENCH_RESULT_ROOTFS_READ_MIN[$i]=${aBENCH_ROOTFS_READ[$i,$j]}
+ aBENCH_RESULT_CPU_TEMP_END_MIN[$i]=${aBENCH_CPU_TEMP_END[$i,$j]}
fi
- if (( ${aBENCH_ROOTFS_READ[$i,$j]} > ${aBENCH_RESULT_ROOTFS_READ_MAX[$i]} )); then
+ if (( ${aBENCH_CPU_TEMP_END[$i,$j]} > ${aBENCH_RESULT_CPU_TEMP_END_MAX[$i]} )); then
- aBENCH_RESULT_ROOTFS_READ_MAX[$i]=${aBENCH_ROOTFS_READ[$i,$j]}
+ aBENCH_RESULT_CPU_TEMP_END_MAX[$i]=${aBENCH_CPU_TEMP_END[$i,$j]}
fi
- (( aBENCH_RESULT_ROOTFS_READ_AVG[$i] += ${aBENCH_ROOTFS_READ[$i,$j]} ))
+ (( aBENCH_RESULT_CPU_TEMP_END_AVG[$i] += ${aBENCH_CPU_TEMP_END[$i,$j]} ))
- #RAM
- # echo "aBENCH_RAM_WRITE[$i,$j] ${aBENCH_RAM_WRITE[$i,$j]}"
- if (( ${aBENCH_RAM_WRITE[$i,$j]} < ${aBENCH_RESULT_RAM_WRITE_MIN[$i]} )); then
+ #Last item in current array. Work out averages
+ if (( $j == ${aBENCH_CPU_INDEX[$i]} - 1 )); then
- aBENCH_RESULT_RAM_WRITE_MIN[$i]=${aBENCH_RAM_WRITE[$i,$j]}
+ aBENCH_RESULT_CPU_AVG[$i]=$(bc -l <<< "scale=$BENCH_RESULTS_CPU_SCALE; ${aBENCH_RESULT_CPU_AVG[$i]} / ${aBENCH_CPU_INDEX[$i]}")
+ aBENCH_RESULT_CPU_TEMP_START_AVG[$i]=$(( ${aBENCH_RESULT_CPU_TEMP_START_AVG[$i]} / ${aBENCH_CPU_INDEX[$i]} ))
+ aBENCH_RESULT_CPU_TEMP_END_AVG[$i]=$(( ${aBENCH_RESULT_CPU_TEMP_END_AVG[$i]} / ${aBENCH_CPU_INDEX[$i]} ))
- fi
- if (( ${aBENCH_RAM_WRITE[$i,$j]} > ${aBENCH_RESULT_RAM_WRITE_MAX[$i]} )); then
+ if [[ $G_DEBUG == 1 ]]; then
- aBENCH_RESULT_RAM_WRITE_MAX[$i]=${aBENCH_RAM_WRITE[$i,$j]}
+ echo "aBENCH_RESULT_CPU_AVG $i = ${aBENCH_RESULT_CPU_AVG[$i]}"
+ echo "aBENCH_RESULT_CPU_TEMP_START_AVG $i = ${aBENCH_RESULT_CPU_TEMP_START_AVG[$i]}"
+ echo "aBENCH_RESULT_CPU_TEMP_END_AVG $i = ${aBENCH_RESULT_CPU_TEMP_END_AVG[$i]}"
+
+ fi
fi
- (( aBENCH_RESULT_RAM_WRITE_AVG[$i] += ${aBENCH_RAM_WRITE[$i,$j]} ))
- # echo "aBENCH_RAM_READ[$i,$j] ${aBENCH_RAM_READ[$i,$j]}"
- if (( ${aBENCH_RAM_READ[$i,$j]} < ${aBENCH_RESULT_RAM_READ_MIN[$i]} )); then
+ done
- aBENCH_RESULT_RAM_READ_MIN[$i]=${aBENCH_RAM_READ[$i,$j]}
+ done
+
+ # - RootFS
+ for i in ${!aBENCH_ROOTFS_INDEX[@]}
+ do
+
+ aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]=$default_min_value
+ aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]=0
+ aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]=0
+ aBENCH_RESULT_ROOTFS_READ_MIN[$i]=$default_min_value
+ aBENCH_RESULT_ROOTFS_READ_MAX[$i]=0
+ aBENCH_RESULT_ROOTFS_READ_AVG[$i]=0
+
+ for (( j=0; j<${aBENCH_ROOTFS_INDEX[$i]}; j++ ))
+ do
+
+ if (( ${aBENCH_ROOTFS_WRITE[$i,$j]} < ${aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]} )); then
+
+ aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]=${aBENCH_ROOTFS_WRITE[$i,$j]}
fi
- if (( ${aBENCH_RAM_READ[$i,$j]} > ${aBENCH_RESULT_RAM_READ_MAX[$i]} )); then
+ if (( ${aBENCH_ROOTFS_WRITE[$i,$j]} > ${aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]} )); then
- aBENCH_RESULT_RAM_READ_MAX[$i]=${aBENCH_RAM_READ[$i,$j]}
+ aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]=${aBENCH_ROOTFS_WRITE[$i,$j]}
fi
- (( aBENCH_RESULT_RAM_READ_AVG[$i] += ${aBENCH_RAM_READ[$i,$j]} ))
+ (( aBENCH_RESULT_ROOTFS_WRITE_AVG[$i] += ${aBENCH_ROOTFS_WRITE[$i,$j]} ))
- #CPU temp
- # echo "aBENCH_CPU_TEMP_START[$i,$j] ${aBENCH_CPU_TEMP_START[$i,$j]}"
- if (( $hw_model_supports_cpu_temps )); then
+ # echo "aBENCH_ROOTFS_READ[$i,$j] ${aBENCH_ROOTFS_READ[$i,$j]}"
+ if (( ${aBENCH_ROOTFS_READ[$i,$j]} < ${aBENCH_RESULT_ROOTFS_READ_MIN[$i]} )); then
- if [[ ${aBENCH_CPU_TEMP_START[$i,$j]} =~ ^-?[0-9]+$ ]]; then
+ aBENCH_RESULT_ROOTFS_READ_MIN[$i]=${aBENCH_ROOTFS_READ[$i,$j]}
- if (( ${aBENCH_CPU_TEMP_START[$i,$j]} < ${aBENCH_RESULT_CPU_TEMP_START_MIN[$i]} )); then
+ fi
+ if (( ${aBENCH_ROOTFS_READ[$i,$j]} > ${aBENCH_RESULT_ROOTFS_READ_MAX[$i]} )); then
- aBENCH_RESULT_CPU_TEMP_START_MIN[$i]=${aBENCH_CPU_TEMP_START[$i,$j]}
+ aBENCH_RESULT_ROOTFS_READ_MAX[$i]=${aBENCH_ROOTFS_READ[$i,$j]}
- fi
- if (( ${aBENCH_CPU_TEMP_START[$i,$j]} > ${aBENCH_RESULT_CPU_TEMP_START_MAX[$i]} )); then
+ fi
+ (( aBENCH_RESULT_ROOTFS_READ_AVG[$i] += ${aBENCH_ROOTFS_READ[$i,$j]} ))
- aBENCH_RESULT_CPU_TEMP_START_MAX[$i]=${aBENCH_CPU_TEMP_START[$i,$j]}
+ #Last item in current array. Work out averages
+ if (( $j == ${aBENCH_ROOTFS_INDEX[$i]} - 1 )); then
- fi
- (( aBENCH_RESULT_CPU_TEMP_START_AVG[$i] += ${aBENCH_CPU_TEMP_START[$i,$j]} ))
+ aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]=$(( ${aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]} / ${aBENCH_ROOTFS_INDEX[$i]} ))
+ aBENCH_RESULT_ROOTFS_READ_AVG[$i]=$(( ${aBENCH_RESULT_ROOTFS_READ_AVG[$i]} / ${aBENCH_ROOTFS_INDEX[$i]} ))
- # echo "aBENCH_CPU_TEMP_END[$i,$j] ${aBENCH_CPU_TEMP_END[$i,$j]}"
- if (( ${aBENCH_CPU_TEMP_END[$i,$j]} < ${aBENCH_RESULT_CPU_TEMP_END_MIN[$i]} )); then
+ if [[ $G_DEBUG == 1 ]]; then
- aBENCH_RESULT_CPU_TEMP_END_MIN[$i]=${aBENCH_CPU_TEMP_END[$i,$j]}
+ echo "aBENCH_RESULT_ROOTFS_WRITE_AVG $i = ${aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]}"
+ echo "aBENCH_RESULT_ROOTFS_READ_AVG $i = ${aBENCH_RESULT_ROOTFS_READ_AVG[$i]}"
- fi
- if (( ${aBENCH_CPU_TEMP_END[$i,$j]} > ${aBENCH_RESULT_CPU_TEMP_END_MAX[$i]} )); then
+ fi
- aBENCH_RESULT_CPU_TEMP_END_MAX[$i]=${aBENCH_CPU_TEMP_END[$i,$j]}
+ fi
- fi
- (( aBENCH_RESULT_CPU_TEMP_END_AVG[$i] += ${aBENCH_CPU_TEMP_END[$i,$j]} ))
+ done
- else
+ done
- hw_model_supports_cpu_temps=0 #Set unavailable for current HW model, do not check again for HW model
- aBENCH_RESULT_CPU_TEMP_START_AVG[$i]='N/A'
- aBENCH_RESULT_CPU_TEMP_END_AVG[$i]='N/A'
+ # - RAM
+ for i in ${!aBENCH_RAM_INDEX[@]}
+ do
- aBENCH_RESULT_CPU_TEMP_START_MIN[$i]='N/A'
- aBENCH_RESULT_CPU_TEMP_START_MAX[$i]='N/A'
+ aBENCH_RESULT_RAM_WRITE_MIN[$i]=$default_min_value
+ aBENCH_RESULT_RAM_WRITE_MAX[$i]=0
+ aBENCH_RESULT_RAM_WRITE_AVG[$i]=0
- aBENCH_RESULT_CPU_TEMP_END_MIN[$i]='N/A'
- aBENCH_RESULT_CPU_TEMP_END_MAX[$i]='N/A'
+ aBENCH_RESULT_RAM_READ_MIN[$i]=$default_min_value
+ aBENCH_RESULT_RAM_READ_MAX[$i]=0
+ aBENCH_RESULT_RAM_READ_AVG[$i]=0
- fi
+ for (( j=0; j<${aBENCH_RAM_INDEX[$i]}; j++ ))
+ do
- fi
+ if (( ${aBENCH_RAM_WRITE[$i,$j]} < ${aBENCH_RESULT_RAM_WRITE_MIN[$i]} )); then
+
+ aBENCH_RESULT_RAM_WRITE_MIN[$i]=${aBENCH_RAM_WRITE[$i,$j]}
- if [[ $G_DEBUG == 1 ]]; then
+ fi
+ if (( ${aBENCH_RAM_WRITE[$i,$j]} > ${aBENCH_RESULT_RAM_WRITE_MAX[$i]} )); then
- echo "DEBUG Bench Entry: $i $j"
- echo ${aBENCH_ROOTFS_WRITE[$i,$j]}
- echo ${aBENCH_ROOTFS_READ[$i,$j]}
- echo ${aBENCH_RAM_WRITE[$i,$j]}
- echo ${aBENCH_RAM_READ[$i,$j]}
- echo ${aBENCH_CPU_TEMP_START[$i,$j]}
- echo ${aBENCH_CPU_TEMP_END[$i,$j]}
+ aBENCH_RESULT_RAM_WRITE_MAX[$i]=${aBENCH_RAM_WRITE[$i,$j]}
fi
+ (( aBENCH_RESULT_RAM_WRITE_AVG[$i] += ${aBENCH_RAM_WRITE[$i,$j]} ))
- #Last item in current array. Work out averages
- if (( $j == ${aBENCH_COMMON_INDEX[$i]} - 1 )); then
+ # echo "aBENCH_RAM_READ[$i,$j] ${aBENCH_RAM_READ[$i,$j]}"
+ if (( ${aBENCH_RAM_READ[$i,$j]} < ${aBENCH_RESULT_RAM_READ_MIN[$i]} )); then
+
+ aBENCH_RESULT_RAM_READ_MIN[$i]=${aBENCH_RAM_READ[$i,$j]}
+
+ fi
+ if (( ${aBENCH_RAM_READ[$i,$j]} > ${aBENCH_RESULT_RAM_READ_MAX[$i]} )); then
- aBENCH_RESULT_CPU_AVG[$i]=$(bc -l <<< "scale=$BENCH_RESULTS_CPU_SCALE; ${aBENCH_RESULT_CPU_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]}")
- aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]=$(( ${aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]} ))
- aBENCH_RESULT_ROOTFS_READ_AVG[$i]=$(( ${aBENCH_RESULT_ROOTFS_READ_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]} ))
- aBENCH_RESULT_RAM_WRITE_AVG[$i]=$(( ${aBENCH_RESULT_RAM_WRITE_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]} ))
- aBENCH_RESULT_RAM_READ_AVG[$i]=$(( ${aBENCH_RESULT_RAM_READ_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]} ))
+ aBENCH_RESULT_RAM_READ_MAX[$i]=${aBENCH_RAM_READ[$i,$j]}
- if (( $hw_model_supports_cpu_temps )); then
+ fi
+ (( aBENCH_RESULT_RAM_READ_AVG[$i] += ${aBENCH_RAM_READ[$i,$j]} ))
- aBENCH_RESULT_CPU_TEMP_START_AVG[$i]=$(( ${aBENCH_RESULT_CPU_TEMP_START_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]} ))
- aBENCH_RESULT_CPU_TEMP_END_AVG[$i]=$(( ${aBENCH_RESULT_CPU_TEMP_END_AVG[$i]} / ${aBENCH_COMMON_INDEX[$i]} ))
+ #Last item in current array. Work out averages
+ if (( $j == ${aBENCH_RAM_INDEX[$i]} - 1 )); then
- fi
+ aBENCH_RESULT_RAM_WRITE_AVG[$i]=$(( ${aBENCH_RESULT_RAM_WRITE_AVG[$i]} / ${aBENCH_RAM_INDEX[$i]} ))
+ aBENCH_RESULT_RAM_READ_AVG[$i]=$(( ${aBENCH_RESULT_RAM_READ_AVG[$i]} / ${aBENCH_RAM_INDEX[$i]} ))
if [[ $G_DEBUG == 1 ]]; then
- echo "DEBUG Bench avg: $i"
- echo "aBENCH_RESULT_CPU_AVG $i = ${aBENCH_RESULT_CPU_AVG[$i]}"
- echo "aBENCH_RESULT_ROOTFS_WRITE_AVG $i = ${aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]}"
- echo "aBENCH_RESULT_ROOTFS_READ_AVG $i = ${aBENCH_RESULT_ROOTFS_READ_AVG[$i]}"
echo "aBENCH_RESULT_RAM_WRITE_AVG $i = ${aBENCH_RESULT_RAM_WRITE_AVG[$i]}"
echo "aBENCH_RESULT_RAM_READ_AVG $i = ${aBENCH_RESULT_RAM_READ_AVG[$i]}"
- echo "aBENCH_RESULT_CPU_TEMP_START_AVG $i = ${aBENCH_RESULT_CPU_TEMP_START_AVG[$i]}"
- echo "aBENCH_RESULT_CPU_TEMP_END_AVG $i = ${aBENCH_RESULT_CPU_TEMP_END_AVG[$i]}"
fi
@@ -685,7 +714,7 @@
done
- # - Optional benchmarks LAN
+ # - LAN
for i in ${!aBENCH_LAN_INDEX[@]}
do
@@ -721,14 +750,63 @@
done
- # - Optional benchmarks CUSTOMFS
- #aBENCH_RESULT_CUSTOMFS_WRITE_MIN[$i]=$default_min_value
- #aBENCH_RESULT_CUSTOMFS_WRITE_MAX[$i]=0
- #aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i]=0
+ # - CustomFS
+ for i in ${!aBENCH_CUSTOMFS_INDEX[@]}
+ do
+
+ aBENCH_RESULT_CUSTOMFS_WRITE_MIN[$i]=$default_min_value
+ aBENCH_RESULT_CUSTOMFS_WRITE_MAX[$i]=0
+ aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i]=0
+ aBENCH_RESULT_CUSTOMFS_READ_MIN[$i]=$default_min_value
+ aBENCH_RESULT_CUSTOMFS_READ_MAX[$i]=0
+ aBENCH_RESULT_CUSTOMFS_READ_AVG[$i]=0
+
+ for (( j=0; j<${aBENCH_CUSTOMFS_INDEX[$i]}; j++ ))
+ do
+
+ if (( ${aBENCH_CUSTOMFS_WRITE[$i,$j]} < ${aBENCH_RESULT_CUSTOMFS_WRITE_MIN[$i]} )); then
+
+ aBENCH_RESULT_CUSTOMFS_WRITE_MIN[$i]=${aBENCH_CUSTOMFS_WRITE[$i,$j]}
+
+ fi
+ if (( ${aBENCH_CUSTOMFS_WRITE[$i,$j]} > ${aBENCH_RESULT_CUSTOMFS_WRITE_MAX[$i]} )); then
+
+ aBENCH_RESULT_CUSTOMFS_WRITE_MAX[$i]=${aBENCH_CUSTOMFS_WRITE[$i,$j]}
- #aBENCH_RESULT_CUSTOMFS_READ_MIN[$i]=$default_min_value
- #aBENCH_RESULT_CUSTOMFS_READ_MAX[$i]=0
- #aBENCH_RESULT_CUSTOMFS_READ_AVG[$i]=0
+ fi
+ (( aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i] += ${aBENCH_CUSTOMFS_WRITE[$i,$j]} ))
+
+ # echo "aBENCH_CUSTOMFS_READ[$i,$j] ${aBENCH_CUSTOMFS_READ[$i,$j]}"
+ if (( ${aBENCH_CUSTOMFS_READ[$i,$j]} < ${aBENCH_RESULT_CUSTOMFS_READ_MIN[$i]} )); then
+
+ aBENCH_RESULT_CUSTOMFS_READ_MIN[$i]=${aBENCH_CUSTOMFS_READ[$i,$j]}
+
+ fi
+ if (( ${aBENCH_CUSTOMFS_READ[$i,$j]} > ${aBENCH_RESULT_CUSTOMFS_READ_MAX[$i]} )); then
+
+ aBENCH_RESULT_CUSTOMFS_READ_MAX[$i]=${aBENCH_CUSTOMFS_READ[$i,$j]}
+
+ fi
+ (( aBENCH_RESULT_CUSTOMFS_READ_AVG[$i] += ${aBENCH_CUSTOMFS_READ[$i,$j]} ))
+
+ #Last item in current array. Work out averages
+ if (( $j == ${aBENCH_CUSTOMFS_INDEX[$i]} - 1 )); then
+
+ aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i]=$(( ${aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i]} / ${aBENCH_CUSTOMFS_INDEX[$i]} ))
+ aBENCH_RESULT_CUSTOMFS_READ_AVG[$i]=$(( ${aBENCH_RESULT_CUSTOMFS_READ_AVG[$i]} / ${aBENCH_CUSTOMFS_INDEX[$i]} ))
+
+ if [[ $G_DEBUG == 1 ]]; then
+
+ echo "aBENCH_RESULT_CUSTOMFS_WRITE_AVG $i = ${aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i]}"
+ echo "aBENCH_RESULT_CUSTOMFS_READ_AVG $i = ${aBENCH_RESULT_CUSTOMFS_READ_AVG[$i]}"
+
+ fi
+
+ fi
+
+ done
+
+ done
# Create HTML file
cat << _EOF_ > index.html
@@ -752,7 +830,7 @@
DietPi-Survey report page
- Uploads since: 01.01.2019 00:00:00 UTC
+ Uploads since: 2019-01-01 00:00:00 UTC
Last update: $(TZ=UTC date "+%Y-%m-%d %T UTC")
@@ -761,52 +839,52 @@
Opted out installs | $SURVEY_COUNT_EMPTY |
- DietPi versions:
+ DietPi versions:
$(for i in "${!aDIETPI_VERSION[@]}"; do echo "DietPi v$i | ${aDIETPI_VERSION[$i]} |
"; done | sort -nrk 1.17,1.20 -t ' ')
- Git branches:
+ Git branches:
$(for i in "${!aGIT_BRANCH[@]}"; do echo "$i | ${aGIT_BRANCH[$i]} |
"; done | sort -nrk 2 -t ' ')
- Devices:
+ Devices:
$(for i in "${!aDEVICE_NAME[@]}"; do echo "$i | ${aDEVICE_NAME[$i]} |
"; done | sort -nrk 2 -t ' ')
- CPU architectures:
+ CPU architectures:
$(for i in "${!aCPU_ARCH[@]}"; do echo "$i | ${aCPU_ARCH[$i]} |
"; done | sort -nrk 2 -t ' ')
- CPU core counts:
+ CPU core counts:
$(for i in ${!aCPU_COUNT[@]}; do echo "$i Core(s) | ${aCPU_COUNT[$i]} |
"; done | sort -nrk 2 -t ' ')
- Distro versions:
+ Distro versions:
$(for i in "${!aDISTRO_VERSION[@]}"; do echo "$i | ${aDISTRO_VERSION[$i]} |
"; done | sort -nrk 2 -t ' ')
- Autostart options:
+ Autostart options:
$(for i in "${!aAUTOSTART_OPTION[@]}"; do echo "$i | ${aAUTOSTART_OPTION[$i]} |
"; done | sort -nrk 2 -t ' ')
- DietPi-Automation:
+ DietPi-Automation:
Used by | ${aAUTO_SETUP_AUTOMATED[1]} of $((${aAUTO_SETUP_AUTOMATED[1]} + ${aAUTO_SETUP_AUTOMATED[0]})) installs |
- Network interfaces:
+ Network interfaces:
$(for i in "${!aNETWORK_INTERFACE[@]}"; do echo "$i | ${aNETWORK_INTERFACE[$i]} |
"; done | sort -nrk 2 -t ' ')
- Installed software titles:
+ Installed software titles:
$(for i in "${!aSOFTWARE[@]}"; do echo "$i | ${aSOFTWARE[$i]} |
"; done | sort -nrk 2 -t ' ')
@@ -821,49 +899,81 @@
Device: |
- Total benchmarks: |
- Average: |
- Fastest: |
- Slowest: |
- Average: |
- Lowest: |
- Highest: |
- Average: |
- Lowest: |
- Highest: |
+ Count: |
+ Average: |
+ Fastest: |
+ Slowest: |
+ Average: |
+ Lowest: |
+ Highest: |
+ Average: |
+ Lowest: |
+ Highest: |
- $(for i in "${!aBENCH_COMMON_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_COMMON_INDEX[$i]} | ${aBENCH_RESULT_CPU_AVG[$i]} | ${aBENCH_RESULT_CPU_MIN[$i]} | ${aBENCH_RESULT_CPU_MAX[$i]} | ${aBENCH_RESULT_CPU_TEMP_START_AVG[$i]} | ${aBENCH_RESULT_CPU_TEMP_START_MIN[$i]} | ${aBENCH_RESULT_CPU_TEMP_START_MAX[$i]} | ${aBENCH_RESULT_CPU_TEMP_END_AVG[$i]} | ${aBENCH_RESULT_CPU_TEMP_END_MIN[$i]} | ${aBENCH_RESULT_CPU_TEMP_END_MAX[$i]} |
"; done | sort -nk 1 -t ' ')
+ $(for i in "${!aBENCH_CPU_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_CPU_INDEX[$i]} | ${aBENCH_RESULT_CPU_AVG[$i]} | ${aBENCH_RESULT_CPU_MIN[$i]} | ${aBENCH_RESULT_CPU_MAX[$i]} | ${aBENCH_RESULT_CPU_TEMP_START_AVG[$i]} | ${aBENCH_RESULT_CPU_TEMP_START_MIN[$i]} | ${aBENCH_RESULT_CPU_TEMP_START_MAX[$i]} | ${aBENCH_RESULT_CPU_TEMP_END_AVG[$i]} | ${aBENCH_RESULT_CPU_TEMP_END_MIN[$i]} | ${aBENCH_RESULT_CPU_TEMP_END_MAX[$i]} |
"; done | sort -nk 1 -t ' ')
- DietPi-Benchmarks | IO (Filesystem & RAM):
+ DietPi-Benchmarks | IO (RAM):
|
- RootFS write (MB/s): |
- RootFS read (MB/s): |
RAM write (MB/s): |
RAM read (MB/s): |
Device: |
- Total benchmarks: |
- Average: |
- Fastest: |
- Slowest: |
- Average: |
- Fastest: |
- Slowest: |
- Average: |
- Fastest: |
- Slowest: |
- Average: |
- Fastest: |
- Slowest: |
+ Count: |
+ Average: |
+ Fastest: |
+ Slowest: |
+ Average: |
+ Fastest: |
+ Slowest: |
- $(for i in "${!aBENCH_COMMON_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_COMMON_INDEX[$i]} | ${aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]} | ${aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]} | ${aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]} | ${aBENCH_RESULT_ROOTFS_READ_AVG[$i]} | ${aBENCH_RESULT_ROOTFS_READ_MAX[$i]} | ${aBENCH_RESULT_ROOTFS_READ_MIN[$i]} | ${aBENCH_RESULT_RAM_WRITE_AVG[$i]} | ${aBENCH_RESULT_RAM_WRITE_MAX[$i]} | ${aBENCH_RESULT_RAM_WRITE_MIN[$i]} | ${aBENCH_RESULT_RAM_READ_AVG[$i]} | ${aBENCH_RESULT_RAM_READ_MAX[$i]} | ${aBENCH_RESULT_RAM_READ_MIN[$i]} |
"; done | sort -nk 1 -t ' ')
+ $(for i in "${!aBENCH_RAM_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_RAM_INDEX[$i]} | ${aBENCH_RESULT_RAM_WRITE_AVG[$i]} | ${aBENCH_RESULT_RAM_WRITE_MAX[$i]} | ${aBENCH_RESULT_RAM_WRITE_MIN[$i]} | ${aBENCH_RESULT_RAM_READ_AVG[$i]} | ${aBENCH_RESULT_RAM_READ_MAX[$i]} | ${aBENCH_RESULT_RAM_READ_MIN[$i]} |
"; done )
- DietPi-Benchmarks | Network LAN throughput:
+ DietPi-Benchmarks | IO (RootFS):
+
+
+ |
+ RootFS write (MB/s): |
+ RootFS read (MB/s): |
+
+
+ Device: |
+ Count: |
+ Average: |
+ Fastest: |
+ Slowest: |
+ Average: |
+ Fastest: |
+ Slowest: |
+
+ $(for i in "${!aBENCH_ROOTFS_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_ROOTFS_INDEX[$i]} | ${aBENCH_RESULT_ROOTFS_WRITE_AVG[$i]} | ${aBENCH_RESULT_ROOTFS_WRITE_MAX[$i]} | ${aBENCH_RESULT_ROOTFS_WRITE_MIN[$i]} | ${aBENCH_RESULT_ROOTFS_READ_AVG[$i]} | ${aBENCH_RESULT_ROOTFS_READ_MAX[$i]} | ${aBENCH_RESULT_ROOTFS_READ_MIN[$i]} |
"; done )
+
+
+ DietPi-Benchmarks | IO (Custom FS):
+
+
+ |
+ Custom FS write (MB/s): |
+ Custom FS read (MB/s): |
+
+
+ Device: |
+ Count: |
+ Average: |
+ Fastest: |
+ Slowest: |
+ Average: |
+ Fastest: |
+ Slowest: |
+
+ $(for i in "${!aBENCH_CUSTOMFS_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_CUSTOMFS_INDEX[$i]} | ${aBENCH_RESULT_CUSTOMFS_WRITE_AVG[$i]} | ${aBENCH_RESULT_CUSTOMFS_WRITE_MAX[$i]} | ${aBENCH_RESULT_CUSTOMFS_WRITE_MIN[$i]} | ${aBENCH_RESULT_CUSTOMFS_READ_AVG[$i]} | ${aBENCH_RESULT_CUSTOMFS_READ_MAX[$i]} | ${aBENCH_RESULT_CUSTOMFS_READ_MIN[$i]} |
"; done )
+
+
+ DietPi-Benchmarks | IO (Network LAN):
|
@@ -871,19 +981,27 @@
Device: |
- Total benchmarks: |
- Average: |
- Fastest: |
- Slowest: |
+ Count: |
+ Average: |
+ Fastest: |
+ Slowest: |
- $(for i in "${!aBENCH_LAN_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_LAN_INDEX[$i]} | ${aBENCH_RESULT_NET_LAN_SPEED_AVG[$i]} | ${aBENCH_RESULT_NET_LAN_SPEED_MAX[$i]} | ${aBENCH_RESULT_NET_LAN_SPEED_MIN[$i]} |
"; done | sort -nk 1 -t ' ')
+ $(for i in "${!aBENCH_LAN_INDEX[@]}"; do echo "${aHW_NAME[$i]:=$i} | ${aBENCH_LAN_INDEX[$i]} | ${aBENCH_RESULT_NET_LAN_SPEED_AVG[$i]} | ${aBENCH_RESULT_NET_LAN_SPEED_MAX[$i]} | ${aBENCH_RESULT_NET_LAN_SPEED_MIN[$i]} |
"; done )