Skip to content

Commit 7ea4f0b

Browse files
author
hcf coder
committed
fix: update MAX_HISTORY_SIZE to reflect 1 day of data points
1 parent af7ba45 commit 7ea4f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/thermal_regulation/shared_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use std::collections::{HashMap, VecDeque};
1313
use std::time::{SystemTime, UNIX_EPOCH};
1414
use tokio::sync::RwLock;
1515

16-
/// Maximum number of historical data points per regulator (1 hour at 1Hz)
17-
pub const MAX_HISTORY_SIZE: usize = 3600;
16+
/// Maximum number of historical data points per regulator (1 day at 1Hz)
17+
pub const MAX_HISTORY_SIZE: usize = 86400;
1818

1919
/// Single data point in thermal regulation history
2020
#[derive(Debug, Clone, Serialize, Deserialize)]

0 commit comments

Comments
 (0)