From eb046ff591c5abe9f2cd1f493ab8756d0abf61cf Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 12 Apr 2014 04:08:02 +0000 Subject: Changes to use new htmlviewfunctions functions and change connectedpeers to return cfe --- openssh-model.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openssh-model.lua') diff --git a/openssh-model.lua b/openssh-model.lua index 8eb946b..d672960 100644 --- a/openssh-model.lua +++ b/openssh-model.lua @@ -124,7 +124,7 @@ function mymodule.update_config(self, config) end function mymodule.list_conn_peers() - local output = {} + local output = cfe({ type="structure", value={}, label="Connected peers" }) local netstat = {} local ps = {} local who = {} @@ -172,8 +172,8 @@ function mymodule.list_conn_peers() end end end - table.insert(output, v) - output[#output]['host'] = peer + output.value[#output.value+1] = v + output.value[#output.value].host = peer end return output -- cgit v1.2.3