v1.0.0beta14fix4
~修复部分ssr节点不可用的bug ~mac过滤功能增加移除单个设备以及添加全部设备功能 ~修复设置本机代理时直接跳出的bug ~优化安装脚本,增加root用户检测 ~优化ipv6dns拦截方式 ~修复部分设备开机启动显示不正常的bug ~修复部分设备时间显示不正常的bug
This commit is contained in:
@@ -22,7 +22,7 @@ source $ccfg
|
||||
[ ! -f $clashdir/mac ] && touch $clashdir/mac
|
||||
#开机自启相关
|
||||
if [ -f /etc/rc.common ];then
|
||||
if [ -f /etc/rc.d/*clash ];then
|
||||
if [ -n "$(find /etc/rc.d -name '*clash')" ];then
|
||||
autostart=enable_rc
|
||||
else
|
||||
autostart=disable_rc
|
||||
@@ -62,12 +62,13 @@ if [ -n "$PID" ];then
|
||||
VmRSS=`cat /proc/$PID/status|grep -w VmRSS|awk '{print $2,$3}'`
|
||||
#获取运行时长
|
||||
if [ -n "$start_time" ]; then
|
||||
time=$((`date +%s`-$start_time))
|
||||
day=$(($time/86400))
|
||||
if [[ $day != 0 ]]; then
|
||||
day=$day天
|
||||
else
|
||||
time=$(expr `date +%s` - $start_time)
|
||||
#day=$(($time/86400))
|
||||
day=$(expr $time / 86400)
|
||||
if [ "$day" = "0" ]; then
|
||||
day=""
|
||||
else
|
||||
day="$day""天"
|
||||
fi
|
||||
time=`date -u -d @${time} +%H小时%M分%S秒`
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user