File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,19 +73,19 @@ tenant_config_validate(struct tenant_config *config, bool *did_set)
73
73
74
74
if (scheduler == SCHEDULER_MTDS ) {
75
75
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 ;
78
78
}
79
79
80
80
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" ,
82
82
(uint32_t )RUNTIME_RELATIVE_DEADLINE_US_MAX , config -> replenishment_period_us );
83
83
return -1 ;
84
84
}
85
85
86
86
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 ;
89
89
}
90
90
91
91
if (config -> max_budget_us > (uint32_t )RUNTIME_RELATIVE_DEADLINE_US_MAX ) {
You can’t perform that action at this time.
0 commit comments