From 99c414b62fff1e60bcd2110c7ca0736648b36cd5 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Mon, 25 May 2020 11:18:24 +0300 Subject: fixes for thread loading, VOC and waste handling --- .../Embedded_SW/Embedded/Common/Utilities/idle_task.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Common') diff --git a/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c b/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c index 86c030dc0..54e186b28 100644 --- a/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c +++ b/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c @@ -51,7 +51,7 @@ static uint32_t idle_counter; static long next_interval; /*by ticks*/ static bool first_time_after_init; static int system_load; -static int load; +static int Load; static int max_system_load; static int max_load; static uint32_t idle_load_table[101]; @@ -188,14 +188,14 @@ uint32_t unload_max_count=0; calculate_system_load(current_load); old_idle_counter = idle_counter; time_interval = next_interval; - load=current_load; + Load=current_load; prev_load = current_load / 10; - idle_load_table[load]++; - if(load > max_load) max_load = load; - //REPORT_MSG(load,"Real time load"); + idle_load_table[Load]++; + if(Load > max_load) max_load = Load; + //REPORT_MSG(Load,"Real time load"); #ifdef DEBUG - printf("c_ld=%d\n",load); + printf("c_ld=%d\n",Load); #endif } } @@ -239,7 +239,7 @@ static uint32_t number_of_load_samples; first_time_after_init = FALSE; system_load = current_load; max_system_load = system_load; - max_load = load; + max_load = Load; number_of_load_samples = 1; sum_of_previous_load = current_load; } @@ -299,7 +299,7 @@ extern int IDLE_TASK_get_load(void) /***********************************************************/ extern int IDLE_TASK_get_current_load(void) { - return load; + return Load; } /***********************************************************/ @@ -320,7 +320,7 @@ extern int IDLE_TASK_get_load(void) /***********************************************************/ /*export MN_uint32_t mn_get_curent_load(char *pParams) { - MN_printf("\n\rload=%d,max load=%d", load, max_load); + MN_printf("\n\rload=%d,max Load=%d", Load, max_load); return(RET_OK); } */ -- cgit v1.3.1