From eb0a10b06467ed59ee8a9cd9291a73f558273b07 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Tue, 20 Jun 2023 16:38:09 +0200 Subject: [PATCH] round all values --- .../src/resources/assets/CO2FootprintReportTemplate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nf-co2footprint/src/resources/assets/CO2FootprintReportTemplate.js b/plugins/nf-co2footprint/src/resources/assets/CO2FootprintReportTemplate.js index 0d31608..9c6c9f5 100644 --- a/plugins/nf-co2footprint/src/resources/assets/CO2FootprintReportTemplate.js +++ b/plugins/nf-co2footprint/src/resources/assets/CO2FootprintReportTemplate.js @@ -145,7 +145,7 @@ $(function() { unit_index--; } - return value + units[unit_index]; + return Math.floor(value) + units[unit_index]; } // Humanize duration