Commit 6f30c7fa authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

fix dangling bracket

parent 6092e2cc
......@@ -253,7 +253,7 @@ int kernel_set_nr_hugepages(int nr)
FILE *f;
f = fopen(PROCFS_PATH "/sys/vm/nr_hugepages", "w");
if (!f){
if (!f) {
if (access("/.dockerenv", F_OK) != -1) {
warning("This functionality is unavailable in this mode. Please run the Docker container in the privileged mode:");
......@@ -263,10 +263,6 @@ int kernel_set_nr_hugepages(int nr)
serror("Failed to open %s", PROCFS_PATH "/sys/vm/nr_hugepages");
fprintf(f, "%d\n", nr);
Markdown is supported
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