Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeechey committed Dec 16, 2024
1 parent 5d2e473 commit 7414445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sensors/src/temperature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ impl Status {
/// - Warning: 0.0 to 20.0 and 80.0 to 100.0 degrees Celsius
/// - Critical: Below 0.0 and above 100.0 degrees Celsius
pub fn default_calculate_bounds(value: f32) -> SensorValueRange<f32> {
if value < 0.0 || value > 100.0 {
if value <= 0.0 || value >= 100.0 {
SensorValueRange::Critical(value)
} else if value < 20.0 || value > 80.0 {
} else if value <= 20.0 || value >= 80.0 {
SensorValueRange::Warning(value)
} else {
SensorValueRange::Safe(value)
Expand Down

0 comments on commit 7414445

Please sign in to comment.