Skip to content

Commit

Permalink
Change sensor reading expiration to 2h
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 authored Mar 29, 2024
1 parent dae232d commit a745af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/SensorReading/SensorReading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const SensorReading = ({
const unit = units[type];
const formattedValue = value.toFixed(unit[1]) + unit[0];
const readingAge = Date.now() - timestamp;
const isCurrent = readingAge <= 3_600_000;
const isCurrent = readingAge <= 7_200_000;
const isVisible = readingAge <= 86_400_000;
// TODO: only for type === Temperature
const thermometerState = thresholds.filter(threshold => threshold < value).length;
Expand Down

0 comments on commit a745af9

Please sign in to comment.