Commit f1a2312d authored by Petr Baudis's avatar Petr Baudis
Browse files

compctld limitmem: Print maximum possible limit in case of too large limit

parent 8a3227b2
......@@ -253,7 +253,7 @@ sockerror:
continue;
}
if (limit > total || total - limit < minuser) {
mprintf(fd, "-2 at least %zuM must remain available for users.", minuser / 1048576);
mprintf(fd, "-2 at least %zuM must remain available for users; maximum limit for computations is %zuM.", minuser / 1048576, (total - minuser) / 1048576);
close(fd);
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment