summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-11-27 18:38:27 +0100
committerÖzgür Kesim <oec@kesim.org>2024-11-27 18:38:27 +0100
commit88ea1bfb0accbb8d68aa6e50e08a735d730f985c (patch)
tree764633706e88a78e0690d4873739d459de9027f1
parent0ebf69db6c2acb3f7b88eec1f0852ccf40068077 (diff)
rounding of unaccounted
-rw-r--r--zeitgeist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/zeitgeist.go b/zeitgeist.go
index 762b0af..abcbe52 100644
--- a/zeitgeist.go
+++ b/zeitgeist.go
@@ -796,7 +796,7 @@ type Totals struct {
func (t *Totals) Unaccounted() Amount {
d := t.Budgeted - t.Planned
// TODO: rounding OK!?
- if d < 4 {
+ if d < 0.01 {
return 0
}
return d