autocore: sync with luci

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-03-28 15:03:25 +08:00
parent e0cb58f78f
commit c63b7ea4e5
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

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