mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Fix an iteration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user