schedules: update option name from start to start_time

This commit is contained in:
Mohd Mehdi 2024-10-10 09:09:37 +00:00 committed by IOPSYS Dev
parent 4068da5e91
commit d23a06d6df
No known key found for this signature in database

View file

@ -344,7 +344,7 @@ static int set_schedule_day(char *refparam, struct dmctx *ctx, void *data, char
static int get_schedule_start(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start", value);
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start_time", value);
return 0;
}
@ -362,7 +362,7 @@ static int set_schedule_start(char *refparam, struct dmctx *ctx, void *data, cha
ret = FAULT_9007;
break;
case VALUESET:
dmuci_set_value_by_section(((struct dm_data *)data)->config_section, "start", value);
dmuci_set_value_by_section(((struct dm_data *)data)->config_section, "start_time", value);
break;
}
@ -414,7 +414,7 @@ static int get_schedule_status(char *refparam, struct dmctx *ctx, void *data, ch
return 0;
}
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start", &start);
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start_time", &start);
duration = dmuci_get_value_by_section_fallback_def(((struct dm_data *)data)->config_section, "duration", "1");