+
+ println!("----- FINAL RESULT -----");
+ if let Some(info) = &collected_data.info {
+ print_info_file(&info);
+ }
+ if !collected_data.data_samples.is_empty() {
+ collected_data.data_samples.sort_by(|a, b| {
+ let ta = NaiveDateTime::parse_from_str(&a.timestamp, "%Y-%m-%d %H:%M:%S").unwrap();
+ let tb = NaiveDateTime::parse_from_str(&b.timestamp, "%Y-%m-%d %H:%M:%S").unwrap();
+ ta.cmp(&tb)
+ });
+ print_data_file(&collected_data.data_samples);
+ }
+