mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +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
|
@ -78,7 +78,7 @@ public:
|
|||
virtual mode_t required_mode() const { return 0444; }
|
||||
virtual UserID owner_user() const { return 0; }
|
||||
virtual GroupID owner_group() const { return 0; }
|
||||
static time_t modified_time() { return TimeManagement::now().to_timeval().tv_sec; }
|
||||
static Time modified_time() { return TimeManagement::now(); }
|
||||
|
||||
virtual void prepare_for_deletion() { }
|
||||
virtual ErrorOr<void> refresh_data(OpenFileDescription&) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue