diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-28 17:13:14 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-12 11:25:31 +0200 |
commit | 15f7bb296cd0b1af588e4fbc2f201ef8375f4326 (patch) | |
tree | 600bc9e99ebecc98a5182afb042efcc7aad12b48 | |
parent | fbf34f3bf697bf3c9e15742489d7d6fe4a338251 (diff) | |
download | nextcloud-server-15f7bb296cd0b1af588e4fbc2f201ef8375f4326.tar.gz nextcloud-server-15f7bb296cd0b1af588e4fbc2f201ef8375f4326.zip |
continue cleaning-up old versions if availableSpace=0. It's not necessary but gives us some additional free space, especially in the case of a hard quota
-rw-r--r-- | apps/files_versions/lib/versions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index a66e8279f6c..a458861d882 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -453,7 +453,7 @@ class Storage { $versionsSize = $versionsSize - $sizeOfDeletedVersions; // if still not enough free space we rearrange the versions from all files - if ($availableSpace < 0 || $allFiles) { + if ($availableSpace <= 0 || $allFiles) { $result = Storage::getAllVersions($uid); $versions_by_file = $result['by_file']; $all_versions = $result['all']; |