Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
5fa79d1f
Commit
5fa79d1f
authored
8 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Temporarily modify time intervals for testing"
This reverts commit
3e969181
.
parent
42e27161
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+1
-1
1 addition, 1 deletion
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
src/main/java/de/thm/arsnova/services/SessionService.java
+2
-2
2 additions, 2 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
with
3 additions
and
3 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
1
−
1
View file @
5fa79d1f
...
...
@@ -801,7 +801,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
public
Session
updateSessionOwnerActivity
(
final
Session
session
)
{
try
{
/* Do not clutter CouchDB. Only update once every 3 hours. */
if
(
session
.
getLastOwnerActivity
()
>
System
.
currentTimeMillis
()
-
60
*
1
000
)
{
if
(
session
.
getLastOwnerActivity
()
>
System
.
currentTimeMillis
()
-
3
*
3600
000
)
{
return
session
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/services/SessionService.java
+
2
−
2
View file @
5fa79d1f
...
...
@@ -99,8 +99,8 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
}
}
private
static
final
long
SESSION_INACTIVITY_CHECK_INTERVAL_MS
=
60
*
1000L
;
//
30 * 60 * 1000L;
private
static
final
long
SESSION_INACTIVITY_THRESHOLD_MS
=
3
*
60
*
1000L
;
//
90 * 24 * 60 * 60 * 1000L;
private
static
final
long
SESSION_INACTIVITY_CHECK_INTERVAL_MS
=
30
*
60
*
1000L
;
private
static
final
long
SESSION_INACTIVITY_THRESHOLD_MS
=
90
*
24
*
60
*
60
*
1000L
;
@Autowired
private
IDatabaseDao
databaseDao
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment