Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 865df74

Browse files
committed
Burn the old setting
1 parent 9c431e3 commit 865df74

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

imageoptim/FilesQueue.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ -(void)configureWithTableView:(NSTableView *)inTableView {
3333
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
3434

3535
cpuQueue = [NSOperationQueue new];
36-
[cpuQueue setMaxConcurrentOperationCount:[defs integerForKey:@"RunConcurrentTasks"]];
36+
[cpuQueue setMaxConcurrentOperationCount:[defs integerForKey:@"RunConcurrentFiles"]];
3737

3838
dirWorkerQueue = [NSOperationQueue new];
3939
[dirWorkerQueue setMaxConcurrentOperationCount:[defs integerForKey:@"RunConcurrentDirscans"]];

imageoptim/ImageOptimController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ - (void)applicationWillFinishLaunching:(NSNotification *)unused {
2828

2929
NSUInteger maxTasks = [[NSProcessInfo processInfo] activeProcessorCount];
3030

31-
defs[@"RunConcurrentTasks"] = @(maxTasks);
31+
defs[@"RunConcurrentFiles"] = @(maxTasks);
3232
defs[@"RunConcurrentDirscans"] = @((int)ceil((double)maxTasks/3.9));
3333

3434
// Use lighter defaults on slower machines

imageoptim/defaults.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<true/>
4141
<key>RunConcurrentDirscans</key>
4242
<integer>2</integer>
43-
<key>RunConcurrentTasks</key>
43+
<key>RunConcurrentFiles</key>
4444
<integer>4</integer>
4545
<key>RunLowPriority</key>
4646
<true/>

0 commit comments

Comments
 (0)