Skip to content

Commit ac532d1

Browse files
committed
fixed the default values for def.server when not given
1 parent 11d1484 commit ac532d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runtime/include/tenant_config.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ tenant_config_validate(struct tenant_config *config, bool *did_set)
7373

7474
if (scheduler == SCHEDULER_MTDS) {
7575
if (did_set[tenant_config_member_replenishment_period_us] == false) {
76-
fprintf(stderr, "replenishment-period-us field is required\n");
77-
return -1;
76+
fprintf(stderr, "replenishment-period-us field is missing, so defaulting to 0\n");
77+
config->replenishment_period_us = 0;
7878
}
7979

8080
if (config->replenishment_period_us > (uint32_t)RUNTIME_RELATIVE_DEADLINE_US_MAX) {
81-
fprintf(stderr, "Relative-deadline-us must be between 0 and %u, was %u\n",
81+
fprintf(stderr, "relative-deadline-us must be between 0 and %u, was %u\n",
8282
(uint32_t)RUNTIME_RELATIVE_DEADLINE_US_MAX, config->replenishment_period_us);
8383
return -1;
8484
}
8585

8686
if (did_set[tenant_config_member_max_budget_us] == false) {
87-
fprintf(stderr, "max-budget-us field is required\n");
88-
return -1;
87+
fprintf(stderr, "max-budget-us field is missing, so defaulting to 0\n");
88+
config->max_budget_us = 0;
8989
}
9090

9191
if (config->max_budget_us > (uint32_t)RUNTIME_RELATIVE_DEADLINE_US_MAX) {

0 commit comments

Comments
 (0)