Commit f2c6e4b3 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix integer overflow warnings on 32 bit

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f2a53270
......@@ -428,8 +428,8 @@ static const struct time_unit {
{ "us", NSEC_PER_USEC },
{ "ms", NSEC_PER_MSEC },
{ "s", NSEC_PER_SEC },
{ "m", NSEC_PER_SEC * 60},
{ "h", NSEC_PER_SEC * 3600},
{ "m", (u64) NSEC_PER_SEC * 60},
{ "h", (u64) NSEC_PER_SEC * 3600},
{ "eon", U64_MAX },
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment