autocore: sync with luci feed

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2022-03-25 23:54:48 +08:00
parent d03e7618a2
commit fda170cb76

View File

@@ -667,9 +667,8 @@ local methods = {
getOnlineUsers = {
call = function()
local sys = require "luci.sys"
local onlineusers = {}
local onlineusers = sys.exec("cat /proc/net/arp | grep 'br-lan' | grep '0x2' | wc -l")
onlineusers.onlineusers = sys.exec("cat /proc/net/arp | grep 'br-lan' | grep '0x2' | wc -l")
return onlineusers
end