mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
exclude sensor if temp <=0 || temp >= 200
This commit is contained in:
@@ -154,7 +154,7 @@ func (a *Agent) getSystemStats() system.Stats {
|
||||
systemStats.Temperatures = make(map[string]float64, len(temps))
|
||||
for i, sensor := range temps {
|
||||
// skip if temperature is 0
|
||||
if sensor.Temperature == 0 {
|
||||
if sensor.Temperature <= 0 || sensor.Temperature >= 200 {
|
||||
continue
|
||||
}
|
||||
if _, ok := systemStats.Temperatures[sensor.SensorKey]; ok {
|
||||
|
Reference in New Issue
Block a user