Skip to content

Commit

Permalink
Access Controll: Wait time
Browse files Browse the repository at this point in the history
- do not report wait time when a user gained access because the Scheduling Assistant was already opened but no longer counted agains the limit
  (e.g., ping after a sleep)
  • Loading branch information
tomas-muller committed Mar 12, 2024
1 parent 5d5457d commit d33bead
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private static class PingData implements Comparable<PingData> {

void update(PingRequest request, SessionContext context, long t0) {
if (request.getOperation() == Operation.PING) {
if (!iAccess) { iGotAccess = t0; iCountedIn = false; }
if (!iAccess) { iGotAccess = t0; iCountedIn = false; iFirstUse = t0; }
iAccess = true;
} else if (request.getOperation() == Operation.LOGOUT) {
if (iAccess) iCountedOut = false;
Expand Down

0 comments on commit d33bead

Please sign in to comment.