info->current_noti_level = MEMNOTI_LEVEL_FULL;
status = MEMNOTI_ENABLE;
memnoti_send_broadcast(SIGNAL_LOWMEM_FULL, status);
+ _I("current level %4.4lf w:%4.4lf c:%4.4lf f:%4.4lf",
+ level, info->warning_level, info->critical_level, info->full_level);
return;
}
info->current_noti_level = MEMNOTI_LEVEL_CRITICAL;
status = MEMNOTI_ENABLE;
memnoti_send_broadcast(SIGNAL_LOWMEM_STATE, status);
+ _I("current level %4.4lf w:%4.4lf c:%4.4lf f:%4.4lf",
+ level, info->warning_level, info->critical_level, info->full_level);
return;
}
get_storage_status(path, &s);
- dTotal = (double)(s.f_frsize * s.f_blocks);
- dAvail = (double)(s.f_bsize * s.f_bavail);
+ dTotal = (double)s.f_frsize * s.f_blocks;
+ dAvail = (double)s.f_bsize * s.f_bavail;
info->full_level += (MEMORY_MEGABYTE_VALUE/dTotal)*100;
- _I("%s t: %4.0lf a: %4.0lf(%4.2lf) c:%4.4lf f:%4.4lf",
- path, dTotal, dAvail, (dAvail*100/dTotal), info->critical_level, info->full_level);
+ _I("%s t: %4.0lf a: %4.0lf(%4.2lf) w:%4.4lf c:%4.4lf f:%4.4lf",
+ path, dTotal, dAvail, (dAvail*100/dTotal), info->warning_level, info->critical_level, info->full_level);
}
static void check_internal_storage_popup(struct storage_config_info *info)