mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 23:14:16 +01:00
limit is double though jksdfjklsdfkl
This commit is contained in:
parent
24db7aec82
commit
fc78031418
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ public class MainFileCleanupService : IHostedService
|
|||
var allFilesInColdStorageDir = dirColdStorage.GetFiles("*", SearchOption.AllDirectories).ToList();
|
||||
|
||||
var coldStorageRetention = _configuration.GetValueOrDefault(nameof(StaticFilesServerConfiguration.ColdStorageUnusedFileRetentionPeriodInDays), 60);
|
||||
var coldStorageSize = _configuration.GetValueOrDefault(nameof(StaticFilesServerConfiguration.ColdStorageSizeHardLimitInGiB), -1);
|
||||
var coldStorageSize = _configuration.GetValueOrDefault<double>(nameof(StaticFilesServerConfiguration.ColdStorageSizeHardLimitInGiB), -1);
|
||||
|
||||
// clean up cold storage
|
||||
var remainingColdFiles = await CleanUpOutdatedFiles(coldStorageDir, allFilesInColdStorageDir, coldStorageRetention, forcedDeletionAfterHours: -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue