diff --git a/package/lean/luci-app-xlnetacc/Makefile b/package/lean/luci-app-xlnetacc/Makefile index d863c3592..f60c4e486 100644 --- a/package/lean/luci-app-xlnetacc/Makefile +++ b/package/lean/luci-app-xlnetacc/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-xlnetacc PKG_VERSION:=1.0.3 -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_LICENSE:=GPLv2 PKG_MAINTAINER:=Sense diff --git a/package/lean/luci-app-xlnetacc/files/root/usr/bin/xlnetacc.sh b/package/lean/luci-app-xlnetacc/files/root/usr/bin/xlnetacc.sh index e4c18ef81..57fac717a 100644 --- a/package/lean/luci-app-xlnetacc/files/root/usr/bin/xlnetacc.sh +++ b/package/lean/luci-app-xlnetacc/files/root/usr/bin/xlnetacc.sh @@ -413,7 +413,7 @@ isp_upgrade() { local bandwidth json_select "bandwidth" >/dev/null 2>&1 json_get_var bandwidth "downstream" - bandwidth=$(expr ${bandwidth:-0} / 1024) + [ ${bandwidth:=0} -ge 1024 ] && bandwidth=$(( $bandwidth / 1024 )) local outmsg="${link_cn}提速成功,带宽已提升到 ${bandwidth}M"; _log "$outmsg" $(( 1 | $1 * 8 )) [ $1 -eq 1 ] && down_acc=2 || up_acc=2 ;;