Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
d851d2e0
Unverified
Commit
d851d2e0
authored
5 years ago
by
Julius Härtl
Browse files
Options
Downloads
Patches
Plain Diff
Only do regular polling of storage statistics if session_keepalive is enabled
Signed-off-by:
Julius Härtl
<
jus@bitgrid.net
>
parent
48bdd322
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files/js/files.js
+1
-1
1 addition, 1 deletion
apps/files/js/files.js
with
1 addition
and
1 deletion
apps/files/js/files.js
+
1
−
1
View file @
d851d2e0
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
setTimeout
(
Files
.
displayStorageWarnings
,
100
);
setTimeout
(
Files
.
displayStorageWarnings
,
100
);
// only possible at the moment if user is logged in or the files app is loaded
// only possible at the moment if user is logged in or the files app is loaded
if
(
OC
.
currentUser
&&
OCA
.
Files
.
App
)
{
if
(
OC
.
currentUser
&&
OCA
.
Files
.
App
&&
OC
.
config
.
session_keepalive
)
{
// start on load - we ask the server every 5 minutes
// start on load - we ask the server every 5 minutes
var
func
=
_
.
bind
(
OCA
.
Files
.
App
.
fileList
.
updateStorageStatistics
,
OCA
.
Files
.
App
.
fileList
);
var
func
=
_
.
bind
(
OCA
.
Files
.
App
.
fileList
.
updateStorageStatistics
,
OCA
.
Files
.
App
.
fileList
);
var
updateStorageStatisticsInterval
=
5
*
60
*
1000
;
var
updateStorageStatisticsInterval
=
5
*
60
*
1000
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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