From 80bfec6287ee02fa1919cacf3f939ca653ec1fe6 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Thu, 20 Jan 2022 20:38:17 +0800 Subject: [PATCH] =?UTF-8?q?profile:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomFiles/Depends/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CustomFiles/Depends/profile b/CustomFiles/Depends/profile index 5a21a65..dce5646 100755 --- a/CustomFiles/Depends/profile +++ b/CustomFiles/Depends/profile @@ -17,7 +17,7 @@ Sysinfo() { [ -n "${TEMP}" ] && printf " 设备温度: ${TEMP}°C\n" [ -n "${CoreMark}" ] && printf " 性能得分: ${CoreMark}\n" [ -f /proc/uptime ] && printf " 运行时间: $(awk '{a=$1/86400;b=($1%86400)/3600;c=($1%3600)/60;d=($1%60)} {printf("%d 天 %d 小时 %d 分钟 %d 秒\n",a,b,c,d)}' /proc/uptime)\n" - [ -n "${SSH_CONNECTION}" ] && printf " 登录用户: %-7s ${Div} %s\n" ${LOGNAME} $(echo ${SSH_CONNECTION} | awk '{print $1":"$2}') + [ -n "${SSH_CONNECTION}" ] && printf " 登录用户: %-7s ${Div} %s\n" ${LOGNAME} $(echo ${SSH_CONNECTION} | awk '{print $1":"$2}') printf "${White}\n" }