File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- Thu Nov 06 2025 20:19:01 GMT-0700 (Mountain Standard Time);213812474670088202;sH3llH0und;true
1+ Tue Nov 18 2025 16:01:01 GMT-0700 (Mountain Standard Time);213812474670088202;sH3llH0und;true
2+ Tue Nov 18 2025 16:02:15 GMT-0700 (Mountain Standard Time);213812474670088202;sH3llH0und;false
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async function logContainer(event: IScheduledEvent) {
109109 //todo: figure out how to generate text file
110110 //todo: add some file output for attachments in this function; wire it up to the main log function
111111 const attendeesStr =
112- attendees . length > 0 && attendees . length < 15
112+ attendees . length > 0 && attendees . length < 30
113113 ? attendees
114114 . map ( ( usr ) => {
115115 return `\n- ${ usr } ` ;
Original file line number Diff line number Diff line change @@ -289,11 +289,11 @@ export class ScheduledEventWrapper {
289289 pair . leave = this . event . endedAt ;
290290 }
291291
292- const pairDuration = Math . round ( pair . leave . getTime ( ) - pair . join . getTime ( ) ) ;
292+ const pairDuration = pair . leave . getTime ( ) - pair . join . getTime ( ) ;
293293
294294 attendanceTotals . set (
295295 pair . id ,
296- attendanceTotals . get ( pair . id ) ?? 0 + pairDuration ,
296+ ( attendanceTotals . get ( pair . id ) ?? 0 ) + pairDuration ,
297297 ) ;
298298 } ) ;
299299
@@ -312,7 +312,7 @@ export class ScheduledEventWrapper {
312312 if ( ! totals ) throw Error ( "Failed to calculate attendance totals" ) ;
313313
314314 totals . forEach ( ( value : number , key : string ) => {
315- percentages . set ( key , ( value / eventDuration ) * 100 ) ;
315+ percentages . set ( key , Math . round ( ( value / eventDuration ) * 100 ) ) ;
316316 } ) ;
317317
318318 return percentages ;
You can’t perform that action at this time.
0 commit comments