From 5c64954efaabe951f9a6ae45078aa79ce16eaf79 Mon Sep 17 00:00:00 2001 From: HLAD Nicolas Date: Thu, 26 Sep 2024 17:58:48 +0200 Subject: [PATCH] add Float return after averaging --- .../CommitsNumberByJiraTicketsMetric.class.st | 2 +- .../JiraTimeMRTimeDifferenceMetric.class.st | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GitLabHealth-Model-Analysis/CommitsNumberByJiraTicketsMetric.class.st b/src/GitLabHealth-Model-Analysis/CommitsNumberByJiraTicketsMetric.class.st index 6ce6e12..9114c13 100644 --- a/src/GitLabHealth-Model-Analysis/CommitsNumberByJiraTicketsMetric.class.st +++ b/src/GitLabHealth-Model-Analysis/CommitsNumberByJiraTicketsMetric.class.st @@ -20,7 +20,7 @@ CommitsNumberByJiraTicketsMetric >> calculate [ | average | average := (group collect: [ :mergeRequest | mergeRequest commits size ]) average ]. - ^ groupedByDate average + ^ groupedByDate average asFloat ] { #category : #accessing } diff --git a/src/GitLabHealth-Model-Analysis/JiraTimeMRTimeDifferenceMetric.class.st b/src/GitLabHealth-Model-Analysis/JiraTimeMRTimeDifferenceMetric.class.st index 0b7f7cf..6a969f3 100644 --- a/src/GitLabHealth-Model-Analysis/JiraTimeMRTimeDifferenceMetric.class.st +++ b/src/GitLabHealth-Model-Analysis/JiraTimeMRTimeDifferenceMetric.class.st @@ -48,7 +48,7 @@ JiraTimeMRTimeDifferenceMetric >> calculate [ ]. - ^ groupedByDate average + ^ groupedByDate average asFloat ] { #category : #accessing }