On Sun, Oct 13, 2024 at 06:13:13PM GMT, Naoki MATSUMOTO wrote: > A year to seconds calculation includes '*7', but it is wrong. > Fixed to accurate calculation. > > Signed-off-by: Naoki MATSUMOTO <[email protected]> > --- > fs/bcachefs/time_stats.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/bcachefs/time_stats.c b/fs/bcachefs/time_stats.c > index 3fe82757f..d9bddda45 100644 > --- a/fs/bcachefs/time_stats.c > +++ b/fs/bcachefs/time_stats.c > @@ -19,7 +19,7 @@ static const struct time_unit time_units[] = { > { "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 */ > + { "y", (u64) NSEC_PER_SEC * ((3600 * 24 * 365) + (3600 * (24 > / 4)))}, /* 365.25d */ > { "eon", U64_MAX }, > }; > > -- > 2.34.1
patch is mangled
