Skip to content

Commit

Permalink
Fix +sws' and +swt' system flags
Browse files Browse the repository at this point in the history
  • Loading branch information
rickard-green committed Apr 3, 2013
1 parent 8d70fd8 commit a04209a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erts/emulator/beam/erl_init.c
Expand Up @@ -1425,7 +1425,7 @@ erl_start(int argc, char **argv)
VERBOSE(DEBUG_SYSTEM,
("scheduler wake cleanup threshold: %s\n", arg));
}
else if (sys_strcmp("wt", sub_param) == 0) {
else if (has_prefix("wt", sub_param)) {
arg = get_arg(sub_param+2, argv[i+1], &i);
if (erts_sched_set_wakeup_other_thresold(arg) != 0) {
erts_fprintf(stderr, "scheduler wakeup threshold: %s\n",
Expand All @@ -1435,7 +1435,7 @@ erl_start(int argc, char **argv)
VERBOSE(DEBUG_SYSTEM,
("scheduler wakeup threshold: %s\n", arg));
}
else if (sys_strcmp("ws", sub_param) == 0) {
else if (has_prefix("ws", sub_param)) {
arg = get_arg(sub_param+2, argv[i+1], &i);
if (erts_sched_set_wakeup_other_type(arg) != 0) {
erts_fprintf(stderr, "scheduler wakeup strategy: %s\n",
Expand Down

0 comments on commit a04209a

Please sign in to comment.