Skip to content

Commit 22804cd

Browse files
committed
* Fixed issue #35: Logs are deleted after 10 days instead of 5 days.
1 parent 00ed4ea commit 22804cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Changes for 0.3.0
33
* Using RapidAssist version 0.7.0.
44
* Using win32Clipboard version 0.2.0.
55
* Fixed issue #34: Missing documentation with installed software.
6+
* Fixed issue #35: Logs are deleted after 10 days instead of 5 days.
67

78
Changes for 0.2.0
89

src/glog_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ namespace shellanything
259259
void DeletePreviousLogs()
260260
{
261261
static const int DAYS_TO_SECONDS = 86400;
262-
static const int MAX_5_DAYS_OLD = 10*DAYS_TO_SECONDS; //10 days old maximum
263-
DeletePreviousLogs(MAX_5_DAYS_OLD);
262+
static const int MAX_DAYS_OLD = 5*DAYS_TO_SECONDS; //5 days old maximum
263+
DeletePreviousLogs(MAX_DAYS_OLD);
264264
}
265265

266266
void InitLogger()

0 commit comments

Comments
 (0)