mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Add comment about rounding in timer and appease clang-format
This commit is contained in:
parent
f864bd83ad
commit
3816c4bb39
2 changed files with 5 additions and 5 deletions
|
@ -101,7 +101,7 @@ wcstring timer_snapshot_t::print_delta(timer_snapshot_t t1, timer_snapshot_t t2,
|
|||
auto get_unit = [](int64_t micros) {
|
||||
if (micros > 900 * 1E6) {
|
||||
return tunit::minutes;
|
||||
} else if (micros >= 999995) {
|
||||
} else if (micros >= 999995) { // Move to seconds if we would overflow the %6.2 format.
|
||||
return tunit::seconds;
|
||||
} else if (micros >= 1000) {
|
||||
return tunit::milliseconds;
|
||||
|
|
Loading…
Reference in a new issue