when building day's log, skip stubs

main
Bel LaPointe 2023-12-13 13:22:12 -07:00
parent fcb144b437
commit 09e1c57f32
1 changed files with 7 additions and 2 deletions

View File

@ -96,8 +96,13 @@ fn log(f: &String, enabled: &bool, since: &Option<String>) -> Result<(), String>
0 => 1.0,
_ => ((tsheet.xs[i].t - tsheet.xs[i-1].t) as f32 / (60.0*60.0)) as f32,
};
curr.t = x.timestamp();
curr.xs.push(LogX{d: d, x: x.x.clone()});
match x.x.len() {
0 => {},
_ => {
curr.t = x.timestamp();
curr.xs.push(LogX{d: d, x: x.x.clone()});
},
};
}
if curr.xs.len() > 0 {
result.push(curr.clone());