This commit is contained in:
vcoppe
2026-10-01 18:42:31 +02:00
parent eb8e09b835
commit 5868595a6c
9 changed files with 175 additions and 70 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
use crate::statistics::{GPXStatistics, GlobalStatistics, sum_options};
pub struct Buffer {
#[derive(Debug, Default)]
pub struct StatisticsBuffer {
pub total_distance: Vec<f64>,
pub moving_distance: Vec<f64>,
pub total_time: Vec<i64>,
@@ -13,7 +14,7 @@ pub struct Buffer {
pub slope_segment_distance: Vec<f64>,
}
impl Buffer {
impl StatisticsBuffer {
pub fn update(&mut self, stats: &[&GPXStatistics]) {
self.total_distance.clear();
self.moving_distance.clear();