Skip to content

Commit

Permalink
Fix stopping on different days
Browse files Browse the repository at this point in the history
  • Loading branch information
KuabeM committed Mar 23, 2024
1 parent ac78e63 commit e52f1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl TimeBalance {
.signed_duration_since(start)
.checked_sub(&breaks)
.ok_or_else(|| usage_err!("Your break was longer than your work"))?;
self.insert(time, duration.into());
self.insert(stop, duration.into());
self.reset();
Ok(duration)
}
Expand Down

0 comments on commit e52f1f1

Please sign in to comment.