mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Allow heartbeat fields to be unset.
This commit is contained in:
@ -76,6 +76,10 @@ func (srv *SummaryService) aggregateBy(heartbeats []*models.Heartbeat, summaryTy
|
||||
key = h.OperatingSystem
|
||||
}
|
||||
|
||||
if key == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
if _, ok := durations[key]; !ok {
|
||||
durations[key] = time.Duration(0)
|
||||
}
|
||||
|
Reference in New Issue
Block a user