fix bug: miss one module when calcuate the total execution time of the chain

main
xiaosuGW 3 years ago
parent bf306fc0c9
commit 42e3628a10

@ -177,7 +177,7 @@ listener_thread_main(void *dummy)
} }
/* get total estimated execution time */ /* get total estimated execution time */
uint64_t estimated_execution_time = admission_info_get_percentile(&module->admissions_info); uint64_t estimated_execution_time = admission_info_get_percentile(&module->admissions_info);
struct module * next_module = module->next_module; struct module * next_module = module;
while(next_module) { while(next_module) {
estimated_execution_time += admission_info_get_percentile(&next_module->admissions_info); estimated_execution_time += admission_info_get_percentile(&next_module->admissions_info);
next_module = next_module->next_module; next_module = next_module->next_module;

Loading…
Cancel
Save