{
_cleanup_free_ char *path = NULL;
int result;
- unsigned long long totalram_bytes = lowmem_get_totalram();
- if (limit_bytes < MIN_LIMIT_VALUE || limit_bytes > totalram_bytes) {
+ if (limit_bytes < MIN_LIMIT_VALUE) {
_E("[MEMORY-LIMIT] It's meaningless to set memory limit with size (%llu) bytes", limit_bytes);
return RESOURCED_ERROR_INVALID_PARAMETER;
}
_cleanup_free_ char *path = NULL;
GSList *iter = NULL;
int result;
- unsigned long long totalram_bytes = lowmem_get_totalram();
- if (limit_bytes < MIN_LIMIT_VALUE || limit_bytes > totalram_bytes) {
+ if (limit_bytes < MIN_LIMIT_VALUE) {
_E("[MEMORY-LIMIT] It's meaningless to set memory limit with size (%llu) bytes", limit_bytes);
return RESOURCED_ERROR_INVALID_PARAMETER;
}