mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Fix free space check (Wnd)
This commit is contained in:
parent
5fffef74a2
commit
cc4bc41cf4
@ -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.);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user