Permalink
Browse files

Merge branch 'rickard/sys-flags/OTP-11000' into maint-r16

* rickard/sys-flags/OTP-11000:
  Fix `+sws' and `+swt' system flags
  • Loading branch information...
2 parents 858f7b6 + a04209a commit d0e476746a4ce505bceab5a504a4c3e8fc06797a Erlang/OTP committed Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 erts/emulator/beam/erl_init.c
@@ -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",
@@ -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",

0 comments on commit d0e4767

Please sign in to comment.