users() fix date time parsing
This commit is contained in:
+2
-1
@@ -68,7 +68,8 @@ function parseUsersLinux(lines, phase) {
|
||||
tty: l[1],
|
||||
date: timePos === 4 ? parseDate(l[2], l[3]) : l[2],
|
||||
time: l[timePos],
|
||||
ip: l && l.length > timePos + 1 ? l[timePos + 1].replace(/\(/g, '').replace(/\)/g, '') : ''
|
||||
ip: l && l.length > timePos + 1 ? l[timePos + 1].replace(/\(/g, '').replace(/\)/g, '') : '',
|
||||
command: ''
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user