diff --git a/src/plotter_disk.hpp b/src/plotter_disk.hpp index 1e9a7e7e9..419e75ded 100644 --- a/src/plotter_disk.hpp +++ b/src/plotter_disk.hpp @@ -73,12 +73,11 @@ class DiskPlotter { bool show_progress = false) { // Increases the open file limit, we will open a lot of files. -#ifndef _WIN32 - struct rlimit the_limit = {600, 600}; + struct rlimit the_limit = {4096, 4096}; if (-1 == setrlimit(RLIMIT_NOFILE, &the_limit)) { std::cout << "setrlimit failed" << std::endl; } -#endif + if (k < kMinPlotSize || k > kMaxPlotSize) { throw InvalidValueException("Plot size k= " + std::to_string(k) + " is invalid"); }