autocore: sync with luci

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit c63b7ea4e5483fda32b8ff63f69c6ba6cd237e1b)
This commit is contained in:
Tianling Shen 2022-03-28 15:03:25 +08:00
parent 087ca72a8e
commit be0d1b2827
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -662,8 +662,9 @@ local methods = {
getOnlineUsers = {
call = function()
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
end