From a694edd2b9c1d02b41b320072a9c6a255438972e Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Wed, 11 Aug 2021 01:20:52 +0800 Subject: [PATCH] =?UTF-8?q?profile:=20=E8=A1=A5=E5=85=A8=E5=86=85=E5=AD=98?= =?UTF-8?q?=E3=80=81=E5=AD=98=E5=82=A8=E5=8F=AF=E7=94=A8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomFiles/Depends/profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CustomFiles/Depends/profile b/CustomFiles/Depends/profile index 80c3e23..f3cefc5 100644 --- a/CustomFiles/Depends/profile +++ b/CustomFiles/Depends/profile @@ -7,8 +7,8 @@ Sysinfo() { local TEMP=$(echo "$(sensors 2> /dev/null | grep Core | awk '{Sum += $3};END {print Sum}') / $(sensors 2>/dev/null | grep Core | wc -l)" | bc 2>/dev/null | awk '{a=$1;b=32+$1*1.8} {printf("%d°C \e[36m|\e[0m %.1f°F\n",a,b)}') echo -e " 设备信息: ${Yellow}${TARGET_PROFILE} ${Div} $(uname -n)" echo -e " 内核版本: K$(uname -rs | egrep -o "[0-9].+")" - echo -e " 可用内存: $(free | grep Mem | awk '{a=$7*100/$2};b=$7/1024 {printf("%.1fM \e[36m|\e[0m %.1f\n",b,a)}')%" - echo -e " 可用存储: $(df -T / | grep 'overlay' | awk '{a=$5*100/$3;b=$5/1024} {printf("%.1fM \e[36m|\e[0m %.1f\n",b,a)}')%" + echo -e " 可用内存: $(free | grep Mem | awk '{a=$7*100/$2;b=$7/1024;c=$2/1024} {printf("%.1fM \e[36m|\e[0m %.1f%% of %.1fM\n",b,a,c)}')" + echo -e " 可用存储: $(df -T / | grep 'overlay' | awk '{a=$5*100/$3;b=$5/1024;c=$3/1024} {printf("%.1fM \e[36m|\e[0m %.1f%% of %.1fM\n",b,a,c)}')" [ -n "${TEMP}" ] && echo -e " 设备温度: ${TEMP}" [ -n "${CoreMark}" ] && echo -e " 性能得分: ${CoreMark} Scores" echo -e " 运行时间: ${Startup}"