diff --git a/types/services/methods.go b/types/services/methods.go index b4ac3be7..78555ef3 100644 --- a/types/services/methods.go +++ b/types/services/methods.go @@ -68,7 +68,7 @@ func (s Service) Duration() time.Duration { func (s Service) DowntimeData(start time.Time, end time.Time) (*UptimeSeries, *[]downtimes.Downtime, error) { - downtimesList, _ := downtimes.FindByService(s.Id, start, end) + downtimesList, _ := downtimes.FindByServiceAndDuration(s.Id, start, end) response := &UptimeSeries{ Start: start,