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

Fixed negative time online values.

parent b7a76d70
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,7 @@ if(request=="") { // no specific user requested, give list of active users
action=format(NodeAction[system.node_list[n].action]
,system.node_list[n].aux);
t=time()-user.logontime;
if(t&0x80000000) t=0;
write(format("%-25.25s %-31.31s%3u:%02u:%02u %3s %3s %4d\r\n"
,user.alias
,action
......@@ -165,7 +166,8 @@ if(request.charAt(0)=='?') { // Handle "special" requests
write(format("running %s",user.curxtrn));
else
write(format(NodeAction[system.node_list[n].action],system.node_list[n].aux));
t = time()-user.logontime;
t=time()-user.logontime;
if(t&0x80000000) t=0;
write(format(" for %u minutes",Math.floor(t/60)));
} else
write(format(NodeStatus[system.node_list[n].status],system.node_list[n].aux));
......
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