Skip to content

Commit

Permalink
Merge pull request #715 from RikudouPatrickstar/pr
Browse files Browse the repository at this point in the history
内存占用以 MB 显示
  • Loading branch information
juewuy authored Jul 27, 2024
2 parents 4f25207 + 8fc502d commit dea6500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ckstatus(){
PID=$(pidof CrashCore | awk '{print $NF}')
if [ -n "$PID" ];then
run="\033[32m正在运行($redir_mod)\033[0m"
VmRSS=`cat /proc/$PID/status|grep -w VmRSS|awk '{print $2,$3}'`
VmRSS=`cat /proc/$PID/status|grep -w VmRSS|awk 'unit="MB"{print $2/1000, unit}'`
#获取运行时长
touch ${TMPDIR}/crash_start_time #用于延迟启动的校验
start_time=$(cat ${TMPDIR}/crash_start_time)
Expand Down

0 comments on commit dea6500

Please sign in to comment.