changeset 4024:5eaa3d45757e

fairway_availability: use Math.round() to round hoursInDays
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 22 Jul 2019 15:42:43 +0200
parents efe0904b1d45
children 7afa18971d38
files client/src/components/fairway/AvailableFairwayDepth.vue
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Mon Jul 22 13:28:04 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Mon Jul 22 15:42:43 2019 +0200
@@ -81,7 +81,7 @@
 import { FREQUENCIES } from "@/store/fairwayavailability";
 import { defaultDiagramTemplate } from "@/lib/DefaultDiagramTemplate";
 
-const hoursInDays = x => x / 24;
+const hoursInDays = x => Math.round(x / 24);
 
 export default {
   mixins: [diagram, pdfgen, templateLoader],