def caculate_cpu_usge_average_value(valid_cpu_usage_center_index_list, program_to_check_cpu_usage):
    len_valid_cpu_usage = len(valid_cpu_usage_center_index_list)
    cpu_usage_average = 0.0
    for i in valid_cpu_usage_center_index_list:
        cpu_usage_average += sum(program_to_check_cpu_usage[(i - 1):(i + 2)])
        logging.info('cpu usage center index:{}: cpu usage:{}'.format(i, program_to_check_cpu_usage[(i - 1):(i + 2)]))
    return (((cpu_usage_average / len_valid_cpu_usage) / 3.0) if (len_valid_cpu_usage != 0) else 0)
def caculate_cpu_usge_average_value(valid_cpu_usage_center_index_list, program_to_check_cpu_usage):
    len_valid_cpu_usage = len(valid_cpu_usage_center_index_list)
    cpu_usage_average = 0.0
    for i in valid_cpu_usage_center_index_list:
        cpu_usage_average += sum(program_to_check_cpu_usage[(i - 1):(i + 2)])
        logging.info('cpu usage center index:{}: cpu usage:{}'.format(i, program_to_check_cpu_usage[(i - 1):(i + 2)]))
    return (((cpu_usage_average / len_valid_cpu_usage) / 3.0) if (len_valid_cpu_usage != 0) else 0)