Fix free space check (Wnd)

This commit is contained in:
Nekotekina 2017-11-23 03:49:01 +03:00
parent 5fffef74a2
commit cc4bc41cf4
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ logs::file_writer::file_writer(const std::string& name)
// Check free space
fs::device_stat stats{};
if (!fs::statfs(log_name, stats) || stats.avail_free < s_log_size * 8)
if (!fs::statfs(fs::get_config_dir(), stats) || stats.avail_free < s_log_size * 8)
{
fmt::throw_exception("Not enough free space (%f KB)", stats.avail_free / 1000000.);
}