chart data rotate stuff wip

This commit is contained in:
DeltaLima 2025-04-09 00:11:49 +02:00
parent ee7ac050b5
commit f4586f17fc
2 changed files with 3 additions and 3 deletions

View file

@ -811,8 +811,8 @@ void LFS_Chart_Rotate_Data(const byte chartId) {
/* timestamp of the oldest file allowed. Anything older gets deleted. convert to unsigned long */
/* now() returns time_t , i need to substract the difference an long unsigned */
unsigned long tmp_timestampOldest = now() - 3 * TIMESCALE_MINUTE;
unsigned long timestampOldest = strtoul(Char_Timestamp_yyyymmdd(tmp_timestampOldest), NULL, 0);
//unsigned long tmp_timestampOldest = now() - (3 * TIMESCALE_MINUTE);
unsigned long timestampOldest = strtoul(Char_Timestamp_yyyymmdd(now() - (3 * Timescale(TIMESCALE_MINUTE))), NULL, 0);
char chartDirPath[10];
snprintf(chartDirPath, sizeof(chartDirPath), "%s%d", CHART_BASE_PATH, chartId);

View file

@ -61,6 +61,6 @@ void TimeR_Init() {
timer.setInterval(1000, Timer_Output);
timer.setInterval(1000, Timer_Sensor);
timer.setInterval(100, Timer_Control);
timer.setInterval(30000, Timer_3s);
timer.setInterval(15000, Timer_3s);
}