Save before creating restore point: Session start
Auto-saved at 2025-07-29 14:27:28 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -19,16 +19,24 @@ class AutoCommitWatcher {
|
||||
this.commitTimeout = null;
|
||||
this.commitsThisHour = 0;
|
||||
this.lastCommitTime = 0;
|
||||
this.startTime = new Date();
|
||||
|
||||
// Reset commit counter every hour
|
||||
setInterval(() => {
|
||||
this.commitsThisHour = 0;
|
||||
console.log('🔄 Hourly reset: Commit counter reset to 0');
|
||||
}, 3600000);
|
||||
|
||||
console.log('🔍 Auto-commit watcher started');
|
||||
// Log startup info
|
||||
console.log('🚀 Timeshift Auto-Commit Watcher Started');
|
||||
console.log('==========================================');
|
||||
console.log(`📅 Start time: ${this.startTime.toISOString()}`);
|
||||
console.log(`📁 Watching directories: ${WATCH_DIRS.join(', ')}`);
|
||||
console.log(`📄 File extensions: ${WATCH_EXTENSIONS.join(', ')}`);
|
||||
console.log(`⏱️ Commit delay: ${COMMIT_DELAY/1000}s`);
|
||||
console.log(`🚦 Max commits per hour: ${MAX_COMMITS_PER_HOUR}`);
|
||||
console.log(`🔧 Process ID: ${process.pid}`);
|
||||
console.log('==========================================');
|
||||
}
|
||||
|
||||
start() {
|
||||
|
||||
Reference in New Issue
Block a user