Обновить server/motd-info.sh
This commit is contained in:
@@ -16,7 +16,7 @@ RESET="\033[0m"
|
|||||||
|
|
||||||
# Системная статистика
|
# Системная статистика
|
||||||
MEM_STAT=$(free -m | awk '/^Mem:/{printf "%.1f/%.1f МБ", $3, $2}')
|
MEM_STAT=$(free -m | awk '/^Mem:/{printf "%.1f/%.1f МБ", $3, $2}')
|
||||||
LOAD_AVG=$(awk '{print $1 " " $2 " " $3}' /proc/loadavg)
|
LOAD_AVG=$(awk '{print $1 " " $2 " " $3 " (1мин 5мин 15мин)"}' /proc/loadavg)
|
||||||
if command -v sensors &>/dev/null && sensors | grep -iP "Core|temp1" >/dev/null; then
|
if command -v sensors &>/dev/null && sensors | grep -iP "Core|temp1" >/dev/null; then
|
||||||
CPU_TEMP=$(sensors | grep -iP "Core|temp1" | head -n1 | awk '{print $NF}')
|
CPU_TEMP=$(sensors | grep -iP "Core|temp1" | head -n1 | awk '{print $NF}')
|
||||||
elif [[ -r /sys/class/thermal/thermal_zone0/temp ]]; then
|
elif [[ -r /sys/class/thermal/thermal_zone0/temp ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user