bvaisvil / zenith

Zenith - sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Temp seems to be wrong

phumberdroz opened this issue · comments

➜ sudo powermetrics --samplers smc |grep -i "CPU die temperature"

Screenshot 2021-04-29 at 02 41 53

76 vs 140 reported in zenith

Thank you for reporting. I see what I did here:

https://github.com/bvaisvil/zenith/blob/master/src/render.rs#L160

let t: f32 = app.sensors.iter().map(|s| s.current_temp).sum();

This was intended to be an average, not a sum.

I've made a change that will now list the temps I have.