users() fix date time parsing
This commit is contained in:
parent
fe2035b61e
commit
493ee1f8c2
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user