bb icon indicating copy to clipboard operation
bb copied to clipboard

184467440737095520% CPU usage :^)

Open TimB87 opened this issue 4 years ago • 2 comments

Hi @epilys

I am just seeing this, not sure if before I just didn't notice..? I can assure this is just a normal i5-3570k :laughing:

184467440737095520%

TimB87 avatar Feb 07 '21 22:02 TimB87

Hmm, that's equal to 2**64/100. Something to do with overflow. 🤔

bl-ue avatar Jun 23 '21 21:06 bl-ue

Percentage is calculated here https://github.com/epilys/bb/blob/c903d4c2975509299fd3d2600a0c4c2102f445d0/src/components/kernel.rs#L575-L579

Seems like this happens when time is too big compared to total_time.saturating_sub(previous_total_time)

epilys avatar Jun 24 '21 06:06 epilys