diff --git a/Crypto LP Compounder/Crypto LP Compounder.csproj b/Crypto LP Compounder/Crypto LP Compounder.csproj
index 4a97aac..cd1c49a 100644
--- a/Crypto LP Compounder/Crypto LP Compounder.csproj
+++ b/Crypto LP Compounder/Crypto LP Compounder.csproj
@@ -9,7 +9,7 @@
Copyright © lwYeo 2021
lwYeo@github
lwYeo
- 0.1.14
+ 0.1.15
GitHub
https://github.com/lwYeo/CryptoLP_Compounder
Crypto LP Compounder
diff --git a/Crypto LP Compounder/Log.cs b/Crypto LP Compounder/Log.cs
index 45ca409..15fee52 100644
--- a/Crypto LP Compounder/Log.cs
+++ b/Crypto LP Compounder/Log.cs
@@ -168,10 +168,10 @@ private void DeleteOldLogs()
string[] logsToKeep =
Enumerable.Range(0, _DeleteLogAfterDays)
- .Select(i => GetLogFileName(DateTime.Today.AddDays(i)))
+ .Select(i => GetLogFileName(DateTime.Today.AddDays(-i)))
.Concat(
Enumerable.Range(0, _DeleteLogAfterDays)
- .Select(i => GetProcessLogFileName(DateTime.Today.AddDays(i))))
+ .Select(i => GetProcessLogFileName(DateTime.Today.AddDays(-i))))
.ToArray();
string[] logsToDelete = foundLogs.Except(logsToKeep).ToArray();