mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
bcachefs: time_stats: add larger units
Filesystems can stay mounted for a very long time, so add some larger units. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
f1ca1abfb0
commit
cdbfa228a5
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ static const struct time_unit time_units[] = {
|
|||
{ "s", NSEC_PER_SEC },
|
||||
{ "m", (u64) NSEC_PER_SEC * 60},
|
||||
{ "h", (u64) NSEC_PER_SEC * 3600},
|
||||
{ "d", (u64) NSEC_PER_SEC * 3600 * 24},
|
||||
{ "w", (u64) NSEC_PER_SEC * 3600 * 24 * 7},
|
||||
{ "y", (u64) NSEC_PER_SEC * ((3600 * 24 * 7 * 365) + (3600 * (24 / 4) * 7))}, /* 365.25d */
|
||||
{ "eon", U64_MAX },
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue