Skip to content

Commit

Permalink
Merge pull request #103 from Bastian-Eisenmann/bugfix-show-equivalenc…
Browse files Browse the repository at this point in the history
…es-in-text-report-correctly

show equivalences in text report correctly
  • Loading branch information
Bastian-Eisenmann authored Jan 9, 2025
2 parents a5cd75f + de2ae98 commit 8d0e48f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ class CO2FootprintFactory implements TraceObserverFactory {
readableEquivalences.add("- Monthly co2 absorption of ${HelperFunctions.convertToScientificNotation(equivalences[1])} trees")
}
if (equivalences[2]){
readableEquivalences.add("- ${HelperFunctions.convertToScientificNotation(equivalences[2])} flights from paris to london")
readableEquivalences.add("- ${HelperFunctions.convertToScientificNotation(equivalences[2])}% of a flight from paris to london")
}
if (equivalences[3]){
readableEquivalences.add("- ${HelperFunctions.convertToScientificNotation(equivalences[3])}% of a flight from paris to london")
readableEquivalences.add("- ${HelperFunctions.convertToScientificNotation(equivalences[3])} flights from paris to london")
}
if (readableEquivalences.any()) {
co2eSummaryFile.println("\nWhich equals: ")
Expand Down

0 comments on commit 8d0e48f

Please sign in to comment.