Fix an iteration

This commit is contained in:
NextTurn
2020-08-16 00:00:00 +08:00
committed by Next Turn
parent 62f13e64cf
commit 6d5dcfa70c

View File

@@ -311,7 +311,7 @@ namespace WinSW
try
{
for (int j = this.FilesToKeep; j >= 1; j--)
for (int j = this.FilesToKeep; j >= 2; j--)
{
string dst = this.BaseLogFileName + "." + (j - 1) + ext;
string src = this.BaseLogFileName + "." + (j - 2) + ext;