mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user