Skip to content
Snippets Groups Projects
Commit 20494634 authored by rswindell's avatar rswindell
Browse files

Don't include system.stats.total_logons in the logon object unless it's a

terminal server (BBS) logon.
parent 9c3dac59
No related branches found
No related tags found
No related merge requests found
...@@ -22,11 +22,12 @@ function add(obj) ...@@ -22,11 +22,12 @@ function add(obj)
obj.user.limits = undefined; obj.user.limits = undefined;
obj.user.security = undefined; obj.user.security = undefined;
} }
if(obj.node === undefined && js.global.bbs !== undefined) if(js.global.bbs !== undefined) {
obj.node = bbs.node_num; if(obj.node === undefined)
if(obj.total === undefined) obj.node = bbs.node_num;
obj.total = system.stats.total_logons; if(obj.total === undefined)
obj.total = system.stats.total_logons;
}
if(obj.terminal === undefined if(obj.terminal === undefined
&& js.global.console !== undefined) { && js.global.console !== undefined) {
obj.terminal = { obj.terminal = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment