Fix some warnings

This commit is contained in:
Bond_009
2021-07-11 22:32:06 +02:00
parent 203c46de33
commit 915141f196
7 changed files with 62 additions and 76 deletions

View File

@@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
throw new Exception($"Activity Log Retention days must be at least 0. Currently: {retentionDays}");
}
var startDate = DateTime.UtcNow.AddDays(retentionDays.Value * -1);
var startDate = DateTime.UtcNow.AddDays(-retentionDays.Value);
return _activityManager.CleanAsync(startDate);
}