summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpc.c b/src/rpc.c
index 33df75b..e63f7fe 100644
--- a/src/rpc.c
+++ b/src/rpc.c
@@ -178,8 +178,9 @@ static void handleClient( int fd, struct ucred *creds )
if ( user != NULL ) {
fprintf( s, "[%s]\n"
"logoutTime=%lld\n"
- "locked=%d\n",
- tok, (long long)user->logoutTime, (int)user->isLocked );
+ "locked=%d\n"
+ "idleSeconds=%d\n",
+ tok, (long long)user->logoutTime, (int)user->isLocked, (int)( time(NULL) - user->lastActivity ) );
}
tok = strtok( NULL, " \t\n\r" );
}