mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:15:07 +00:00
Kernel: Use AK::Time for InodeMetadata timestamps instead of time_t
Before this change, we were truncating the nanosecond part of file timestamps in many different places.
This commit is contained in:
parent
f8290e1ad4
commit
10fa72d451
23 changed files with 56 additions and 58 deletions
|
@ -38,7 +38,7 @@ InodeMetadata DevPtsFSInode::metadata() const
|
|||
{
|
||||
if (auto pty = m_pty.strong_ref()) {
|
||||
auto metadata = m_metadata;
|
||||
metadata.mtime = pty->time_of_last_write();
|
||||
metadata.mtime = Time::from_timespec({ pty->time_of_last_write(), 0 });
|
||||
return metadata;
|
||||
}
|
||||
return m_metadata;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue