summaryrefslogtreecommitdiffstats
path: root/openvpn-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-model.lua')
-rw-r--r--openvpn-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua
index b13ca4f..47aa726 100644
--- a/openvpn-model.lua
+++ b/openvpn-model.lua
@@ -171,8 +171,8 @@ function clientlist( self, path )
end
end
connclients = table.maxn(list)
- -- FIXME: Use lib/date.lua instead of the following code.
if ( connclients > 0 ) then
+ -- FIXME: If possible, use lib/date.lua instead of the following code.
local lastdatechange = libdate.date_to_seconds(datechange)
lastdatechangetxt = os.date("%c", lastdatechange[#lastdatechange])
lastdatechangediff = os.time() - os.date(lastdatechange[table.maxn(lastdatechange)])