Skip to content
Snippets Groups Projects
Commit 1c8adf65 authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Fix #2297: Remove user name from XML

parent 29f73d10
No related branches found
No related tags found
No related merge requests found
......@@ -45,17 +45,16 @@ do
# Check if is the user system
if ! echo $line | awk -F' ' '{print $2}' | grep -q system; then
userSeconds=$(date -d $Date +%s)
# Check if the user must be collected
if ((${userSeconds} < ${lastexec})); then
if test $count -eq 0; then
echo " "
fi
fi
IFS=$oldIFS
exit 0
fi
login=$(echo $line | awk -F' ' '{print $1}')
login_time=$(echo $line | awk -F' ' '{print $7}')
logout_time=$(echo $line | awk -F' ' '{print $13}')
......@@ -66,7 +65,6 @@ do
count=$(($count+1))
printf "<user>"
printf "<id>$count</id>"
printf "<name>$login</name>"
printf "<login>$login_time</login>"
printf "<logout>$logout_time</logout>"
printf "</user>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment