From d33bead1fbb6b0874a6847d34c5d1f66777e4367 Mon Sep 17 00:00:00 2001 From: tomas-muller Date: Mon, 11 Mar 2024 14:55:03 +0100 Subject: [PATCH] Access Controll: Wait time - 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) --- .../unitime/timetable/server/access/AccessControllBackend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JavaSource/org/unitime/timetable/server/access/AccessControllBackend.java b/JavaSource/org/unitime/timetable/server/access/AccessControllBackend.java index 33598b92cd..ab73c6f56a 100644 --- a/JavaSource/org/unitime/timetable/server/access/AccessControllBackend.java +++ b/JavaSource/org/unitime/timetable/server/access/AccessControllBackend.java @@ -134,7 +134,7 @@ private static class PingData implements Comparable { 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;