This commit is contained in:
rodič
f5ec1c3a37
revize
62f2794ad7
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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, ${
|
||||
|
|
Načítá se…
Odkázat v novém úkolu