GET_ CURRENT_ HOST_ STATS

protected val GET_CURRENT_HOST_STATS: String = "echo -e "$(top -bn1 | grep 'Cpu(s)' | awk '{print 100 - $8}'), $(if ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq &>/dev/null; then freq=$(awk '{s+=$1} END {print s/NR/1000000}' /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq); printf "%.2f" $freq; else freq=$(lscpu | grep 'CPU MHz' | awk '{print $3/1000}'); printf "%.2f" $freq; fi), $(free -b | awk '/Mem:/ {printf "%.2f/%.2f\n", $3/1073741824, $2/1073741824}'), $(df --block-size=1G --total | awk '/total/ {printf "%d/%d\n", $3, $2}'), $(if lsblk -d -o NAME | grep -q mmcblk; then echo "SD_CARD"; elif lsblk -d -o NAME | grep -q nvme; then echo "SSD_NVMe"; elif lsblk -d -o NAME | grep -q vda; then echo "VIRTUAL_DISK"; elif lsblk -d -o ROTA | awk 'NR>1' | grep -q 0; then echo "SSD"; else echo "HARD_DISK"; fi)" "

GET_CURRENT_HOST_STATS the bash command used to retrieve the current stats of the physical machine of the host