This commit is contained in:
tree 2022-01-27 12:05:36 +01:00
rodič 2ebf130658
revize 6ec425049b
3 změnil soubory, kde provedl 9 přidání a 2 odebrání

Binární soubor nebyl zobrazen.

Za

Šířka:  |  Výška:  |  Velikost: 55 KiB

Zobrazit soubor

@ -265,3 +265,7 @@
name: Radek Švarz
tracks: [ defi, dao, regulace ]
- id: josefj
name: JosefJ
twitter: JosefJ_
tracks: [ eth, defi, dao, nft ]

Zobrazit soubor

@ -7,6 +7,8 @@ await utxo.init();
const entryId = "22";
const entry = utxo.entries[entryId];
const speakers = entry.specs.speakers
const setup = [
{ col: "type", title: "Type" },
{ col: "id", title: "ID" },
@ -45,11 +47,12 @@ for (const item of entry.specs.events) {
const totalSpeakers = Object.keys(totals.speakers).length;
const minutesPerSpeaker = totals.duration / totalSpeakers;
const durationPrediction = speakers.length/(totals.duration / 100) * speakers.length
console.log(Table.from(arr).border(true).toString());
console.log(
`Events: ${totals.items}, Speakers: ${totalSpeakers}, duration: ${totals.duration} minutes (${
`Events: ${totals.items}, Speakers: ${totalSpeakers}/${speakers.length}, duration: ${totals.duration} minutes (${
(totals.duration / 60).toFixed(2)
} hours), ` +
} hours, estimated full: ${durationPrediction.toFixed(2)} hours), ` +
`minutes per speaker: ${minutesPerSpeaker.toFixed(2)} min`,
);