From 62f2794ad7d366e17ad22ee603b05e3024bd1ec0 Mon Sep 17 00:00:00 2001 From: tree Date: Mon, 22 May 2023 16:03:40 +0200 Subject: [PATCH] fmt --- utils/engine.js | 4 ++-- utils/plan.js | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/utils/engine.js b/utils/engine.js index f9d0ce0..14b2609 100644 --- a/utils/engine.js +++ b/utils/engine.js @@ -149,7 +149,7 @@ export class UTXOEngine { }); // copy media-kit - if (await exists([ entryDir, "media-kit" ].join("/"))) { + if (await exists([entryDir, "media-kit"].join("/"))) { const outputMediaDir = [entryDir, "media-kit"].join("/"); if (!this.options.silent) { console.log(`UTXO.${entryId}: copying media-kit ..`); @@ -165,7 +165,7 @@ export class UTXOEngine { } // write QA output of events (schedules) - if (specDef.find(item => item.type === 'schedule')) { + if (specDef.find((item) => item.type === "schedule")) { const qa = this.qaSummary(entryId); await this._jsonWrite([entryDir, "qa-summary.json"], qa); } diff --git a/utils/plan.js b/utils/plan.js index 671a4c3..ea9072d 100644 --- a/utils/plan.js +++ b/utils/plan.js @@ -377,9 +377,7 @@ class UTXOPlanner { if (isPeriodOverlap(si.period, ssi.period)) { const eev = this.eventsOriginal.find((e) => e.id === ssi.event); const tagsCrossing = ev.tags.reduce((prev, cur) => - prev + (eev.tags.includes(cur) - ? 0 - : 1), 0) / ev.tags.length; + prev + (eev.tags.includes(cur) ? 0 : 1), 0) / ev.tags.length; crossings.push([ ev.track === eev.track && !["zaklady", "spolecnost"].includes(ev.track) @@ -479,7 +477,7 @@ class UTXOPlanner { } function infoStats(startTime, numResults) { - const duration = ((new Date()).getTime() - startTime.getTime()); + const duration = (new Date()).getTime() - startTime.getTime(); const perSecond = Math.round((numResults / (duration / 1000)) * 100) / 100; const timePerItem = Math.round((duration / numResults) * 100) / 100; return `Duration: ${duration / 1000}s, ${perSecond} solutions/s, ${