mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-30 07:20:13 +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
|
// Check free space
|
||||||
fs::device_stat stats{};
|
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.);
|
fmt::throw_exception("Not enough free space (%f KB)", stats.avail_free / 1000000.);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user