int ret_val = BATTERY_MONITOR_ERROR_NONE;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
g_hash_table_iter_init(&iter, gl_hash);
long int P_power_app_bt = 0, P_power_app_data = 0, P_power_app_conn = 0;
char *appid = NULL;
long int apprx = 0, apptx = 0;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
/* Coefficient to divide the rx and tx time wrt rx and tx bytes */
double crtx_t = 0;
long int apprx = 0, apptx = 0;
double apptime = 0, crx_t = 0, ctx_t = 0;
long int rx_t = 0, tx_t = 0;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
/* Coefficient to divide the rx and tx time wrt rx and tx bytes */
if (RX != 0)
long int P_power_app_cpu = 0, P_power_app_use = 0;
double apptime = 0;
char *appid = NULL;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
appid_usage_s *app_usage = (appid_usage_s *)calloc(1, sizeof(appid_usage_s));
if (app_usage == NULL) {
long int P_power_app_disp = 0, P_power_app_on = 0;
char *appid = NULL;
double apptime = 0;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
appid_usage_s *app_usage = (appid_usage_s *)calloc(1, sizeof(appid_usage_s));
if (app_usage == NULL) {
char *appid = NULL;
long int apprx = 0, apptx = 0;
double apptime = 0;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
appid_usage_s *app_usage = (appid_usage_s *)calloc(1, sizeof(appid_usage_s));
if (app_usage == NULL) {
int P_power_app_gps = 0, P_power_app_conn = 0;
char *appid = NULL;
int apptime = 0;
- long int ret_time = bm_get_log_time();
+ long int ret_time = bm_get_log_time(data_collection_period);
appid_usage_s *app_usage = (appid_usage_s *)calloc(1, sizeof(appid_usage_s));
if (app_usage == NULL) {