when writing Measurements to a CSV, format them in a machine-readable manner

i haven't tested the ones which contains commas -- hopefully the CSV
encoder deals with these :-)
This commit is contained in:
2022-08-10 01:22:31 -07:00
parent 8a3a64face
commit 4fe8be8951
3 changed files with 17 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ fn main() {
loop {
for meas in frame.measurements() {
print!("\"{}\",", meas.str_value());
print!("\"{}\",", meas.machine_readable().replace(",", "\\,"));
}
println!("");