summaryrefslogtreecommitdiff
path: root/zeitgeist.go
diff options
context:
space:
mode:
Diffstat (limited to 'zeitgeist.go')
-rw-r--r--zeitgeist.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/zeitgeist.go b/zeitgeist.go
index 9dc6e67..a4c05c4 100644
--- a/zeitgeist.go
+++ b/zeitgeist.go
@@ -888,11 +888,14 @@ type AllTotals struct {
func (p *Project) Totals() (at *AllTotals) {
at = &AllTotals{
- // TODO: fill in totals here, too
WP: make(map[string]*WPTotals),
}
for n := range p.Workpackages {
- at.WP[n], _ = p.TotalWP(n)
+ t, _ := p.TotalWP(n)
+ at.WP[n] = t
+ at.Totals.Budgeted += t.Budgeted
+ at.Totals.Planned += t.Planned
+ at.Totals.Done += t.Done
}
return at
}