Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
619c3ef5
Commit
619c3ef5
authored
12 years ago
by
Björn Schießle
Browse files
Options
Downloads
Patches
Plain Diff
use limits defined in issue
https://github.com/owncloud/core/issues/860
parent
ec3c5f36
Branches
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_versions/lib/versions.php
+9
-3
9 additions, 3 deletions
apps/files_versions/lib/versions.php
with
9 additions
and
3 deletions
apps/files_versions/lib/versions.php
+
9
−
3
View file @
619c3ef5
...
...
@@ -29,12 +29,18 @@ class Storage {
const
DEFAULTENABLED
=
true
;
const
DEFAULTMAXSIZE
=
50
;
// unit: percentage; 50% of available disk space/quota
private
static
$max_versions_per_interval
=
array
(
1
=>
array
(
'intervalEndsAfter'
=>
3600
,
//first hour, one version every 10sec
private
static
$max_versions_per_interval
=
array
(
1
=>
array
(
'intervalEndsAfter'
=>
10
,
//first 10sec, one version every 2sec
'step'
=>
2
),
2
=>
array
(
'intervalEndsAfter'
=>
60
,
//next minute, one version every 10sec
'step'
=>
10
),
2
=>
array
(
'intervalEndsAfter'
=>
86400
,
//next 24h, one version every hour
3
=>
array
(
'intervalEndsAfter'
=>
3600
,
//next hour, one version every minute
'step'
=>
60
),
4
=>
array
(
'intervalEndsAfter'
=>
86400
,
//next 24h, one version every hour
'step'
=>
3600
),
3
=>
array
(
'intervalEndsAfter'
=>
-
1
,
//until the end
one version per day
5
=>
array
(
'intervalEndsAfter'
=>
2592000
,
//next 30days,
one version per day
'step'
=>
86400
),
6
=>
array
(
'intervalEndsAfter'
=>
-
1
,
//until the end one version per week
'step'
=>
604800
),
);
private
static
function
getUidAndFilename
(
$filename
)
...
...
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