diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index 04dd9fb14f..5a3ea11321 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=autocore PKG_VERSION:=1 -PKG_RELEASE:=28 +PKG_RELEASE:=29 include $(INCLUDE_DIR)/package.mk diff --git a/package/lean/autocore/files/index.htm b/package/lean/autocore/files/index.htm index 4fb64e9f85..22d1a55470 100644 --- a/package/lean/autocore/files/index.htm +++ b/package/lean/autocore/files/index.htm @@ -52,13 +52,7 @@ local user_info = tonumber(luci.sys.exec("cat /proc/net/arp | grep '0x2' | wc -l")) or 0 - local cpu_usage - - if fs.readfile("/tmp/cpuusage") then - cpu_usage = luci.sys.exec("cat /tmp/cpuusage") - else - cpu_usage = "6.6%" - end + local cpu_usage = fs.readfile("/tmp/cpuusage") or "6.6%" luci.sys.exec("/sbin/getcpu &")