maybe fix a bug

main
Bel LaPointe 2024-12-04 16:06:51 -07:00
parent caefbdbdd6
commit a39187a417
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ fn log(f: &String, enabled: &bool, since: &Option<String>, verbose: &bool, preci
curr.d = 0.0;
}
let mut d = 1.0;
if x.x.len() == 0 {
if curr.xs.len() == 0 {
d = 0.0;
} else if i > 0 {
d = ((tsheet.xs[i].t - tsheet.xs[i-1].t) as f32 / (60.0*60.0)) as f32;