god damnit
This commit is contained in:
parent
6c10918835
commit
1166a3c4a3
1 changed files with 2 additions and 2 deletions
|
@ -484,8 +484,8 @@ namespace os {
|
||||||
return Err(DracError(std::format("Failed to get filesystem stats for '/' (statvfs call failed)")));
|
return Err(DracError(std::format("Failed to get filesystem stats for '/' (statvfs call failed)")));
|
||||||
|
|
||||||
return DiskSpace {
|
return DiskSpace {
|
||||||
.used_bytes = (stat.f_blocks * stat.f_frsize) - (stat.f_bfree * stat.f_frsize),
|
.usedBytes = (stat.f_blocks * stat.f_frsize) - (stat.f_bfree * stat.f_frsize),
|
||||||
.total_bytes = stat.f_blocks * stat.f_frsize,
|
.totalBytes = stat.f_blocks * stat.f_frsize,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} // namespace os
|
} // namespace os
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue