diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-12 04:08:02 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-12 04:08:02 +0000 |
commit | eb046ff591c5abe9f2cd1f493ab8756d0abf61cf (patch) | |
tree | 4ab164ef446c989131b087d9db258b409b150402 /openssh-model.lua | |
parent | 0d87bb5527f504012fa877a988f1a3e7591ba584 (diff) | |
download | acf-openssh-eb046ff591c5abe9f2cd1f493ab8756d0abf61cf.tar.bz2 acf-openssh-eb046ff591c5abe9f2cd1f493ab8756d0abf61cf.tar.xz |
Changes to use new htmlviewfunctions functions and change connectedpeers to return cfe
Diffstat (limited to 'openssh-model.lua')
-rw-r--r-- | openssh-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |