HomeFreeBSD

db show thread: avoid overflow in tick conversion

Description

db show thread: avoid overflow in tick conversion

The previous calculations for displaying the time since last switch
easily overflowed, after less than 36 min for hz=1000. Now overflow
takes 2000 times longer (as long as ticks takes to wrap).

Reviewed by: cem, markj
Sponsored by: Dell EMC Isilon
Differential revision: https://reviews.freebsd.org/D20273

Details

Provenance
rlibbyAuthored on
Reviewer
cem
Differential Revision
D20273: db show thread: avoid overlow in tick conversion
Parents
rS347645: iommu static analysis cleanup
Branches
Unknown
Tags
Unknown