Fix an iteration

pull/758/head
NextTurn 2020-08-16 00:00:00 +08:00 committed by Next Turn
parent 62f13e64cf
commit 6d5dcfa70c
1 changed files with 1 additions and 1 deletions

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;