GString *dump_p = NULL;
dump_p = g_string_sized_new(30);
BM_CHECK_MEM_ALLOC(dump_p, {});
- double usage_mah = 0;
+ float usage_mah = 0;
time_t crr_time = 0; time(&crr_time);
int uid_n = 1000; //For Tizen
// Base Resource usage;
g_string_append(dump_p, ",0,l,");
g_string_append(dump_p, "gwfcd,");
//idle rx pwi tx
+ float usage_mah = (float)gwfl_stat->wifi_pwi_val/3600;
g_string_append_printf(dump_p, "%ld,", gwfl_stat->wifi_idle_time);
g_string_append_printf(dump_p, "%ld,", gwfl_stat->wifi_rx_time);
- g_string_append_printf(dump_p, "%ld,", gwfl_stat->wifi_pwi_val);
+ g_string_append_printf(dump_p, "%0.2f,", usage_mah);
g_string_append_printf(dump_p, "%ld", gwfl_stat->wifi_tx_time);
g_string_append(dump_p, "\n");
_DBG("%s", dump_p->str);//write
g_string_append(dump_p, TIZEN_DUMP_VERSION);
g_string_append(dump_p, ",0,l,");
g_string_append(dump_p, "gble,");
+ float usage_mah = (float)gble_stat->ble_pwi_val/3600;
g_string_append_printf(dump_p, "%ld,", gble_stat->ble_idle_time);
g_string_append_printf(dump_p, "%ld,", gble_stat->ble_rx_time);
g_string_append_printf(dump_p, "%ld,", gble_stat->ble_tx_time);
- g_string_append_printf(dump_p, "%ld", gble_stat->ble_pwi_val);
+ g_string_append_printf(dump_p, "%0.2f", usage_mah);
g_string_append(dump_p, "\n");
_DBG("%s", dump_p->str);//write