Skip to content

Commit

Permalink
if we are setting the min by a -1 setting, make sure the max is above…
Browse files Browse the repository at this point in the history
… that min
  • Loading branch information
monkeyiq committed Mar 8, 2024
1 parent f6d8d98 commit 46c5d9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/utils/Config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ private static function load($virtualhost = null)
$k = 'storage_filesystem_per_day_min_days_to_clean_empty_directories';
if( -1 == self::$parameters[$k] ) {
self::$parameters[$k] = self::$parameters['max_transfer_days_valid'];
$kmax = 'storage_filesystem_per_day_max_days_to_clean_empty_directories';
if( self::$parameters[$kmax] < self::$parameters[$k] ) {
self::$parameters[$kmax] = self::$parameters[$k] + 30;
}
}

if( Config::get("storage_filesystem_per_day_max_days_to_clean_empty_directories") < Config::get("storage_filesystem_per_day_min_days_to_clean_empty_directories")) {
Expand Down

0 comments on commit 46c5d9a

Please sign in to comment.