Skip to content

Commit

Permalink
Bump default jetsam multiplier to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Jul 30, 2024
1 parent 0447cdc commit 8f4a28a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Application/Dopamine/UI/Settings/DOSettingsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ - (NSArray *)jetsamOptionTitles
return @[
@"1x",
@"1.5x",
[NSString stringWithFormat:@"2x (%@)", DOLocalizedString(@"Recommended")],
@"2x",
@"2.5x",
@"3x",
[NSString stringWithFormat:@"3x (%@)", DOLocalizedString(@"Recommended")],
@"3.5x",
@"4x",
];
Expand Down Expand Up @@ -243,7 +243,7 @@ - (id)specifiers
PSSpecifier *jetsamSpecifier = [PSSpecifier preferenceSpecifierNamed:DOLocalizedString(@"Settings_Jetsam_Multiplier") target:self set:@selector(setJetsamMultiplier:specifier:) get:@selector(readJetsamMultiplier:) detail:nil cell:PSLinkListCell edit:nil];
[jetsamSpecifier setProperty:@YES forKey:@"enabled"];
[jetsamSpecifier setProperty:@"jetsamMultiplier" forKey:@"key"];
[jetsamSpecifier setProperty:@4 forKey:@"default"];
[jetsamSpecifier setProperty:@6 forKey:@"default"];
jetsamSpecifier.detailControllerClass = [DOPSJetsamListItemsController class];
[jetsamSpecifier setProperty:@"jetsamOptionNumbers" forKey:@"valuesDataSource"];
[jetsamSpecifier setProperty:@"jetsamOptionTitles" forKey:@"titlesDataSource"];
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/systemhook/src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ int spawn_hook_common(pid_t *restrict pid, const char *restrict path,
if (shouldInsertJBEnv) {
uint8_t *attrStruct = (uint8_t *)attr;
if (attrStruct) {
if (jetsamMultiplier == 0 || isnan(jetsamMultiplier)) jetsamMultiplier = 2; // default value (2x)
if (jetsamMultiplier == 0 || isnan(jetsamMultiplier)) jetsamMultiplier = 3; // default value (3x)
if (jetsamMultiplier > 1) {
int memlimit_active = *(int*)(attrStruct + POSIX_SPAWNATTR_OFF_MEMLIMIT_ACTIVE);
if (memlimit_active != -1) {
Expand Down

0 comments on commit 8f4a28a

Please sign in to comment.