function showTotals(){
      let shorten = settings.shrt;
      tip.count.text("Total Count: "+totalPackets)
      let fromtext = pdata.sources.map(type_display[pdata.stype]).join(' ');
      if(shorten) fromtext = elideText(fromtext,1000);
      tip.source.text("from: "+ fromtext);
      let totext = pdata.dests.map(type_display[pdata.dtype]).join(' ');
      if(shorten) totext = elideText(totext,1000);
      tip.dest.text("to: " + totext);
      tip.label.text("label(s): "+(usedL==0?'None':labels.filter((n,i)=>usedL & 1<<i)));
    }
// update tip fields with the totals
update tip fields with the totals
update tip fields with the totals
function showTotals(){
      let shorten = settings.shrt;
      tip.count.text("Total Count: "+totalPackets)
      let fromtext = pdata.sources.map(type_display[pdata.stype]).join(' ');
      if(shorten) fromtext = elideText(fromtext,1000);
      tip.source.text("from: "+ fromtext);
      let totext = pdata.dests.map(type_display[pdata.dtype]).join(' ');
      if(shorten) totext = elideText(totext,1000);
      tip.dest.text("to: " + totext);
      tip.label.text("label(s): "+(usedL==0?'None':labels.filter((n,i)=>usedL & 1<<i)));
    }
function showTotals ( ) { let shorten = settings . shrt ; tip . count . text ( "Total Count: " + totalPackets ) let fromtext = pdata . sources . map ( type_display [ pdata . stype ] ) . join ( ' ' ) ; if ( shorten ) fromtext = elideText ( fromtext , 1000 ) ; tip . source . text ( "from: " + fromtext ) ; let totext = pdata . dests . map ( type_display [ pdata . dtype ] ) . join ( ' ' ) ; if ( shorten ) totext = elideText ( totext , 1000 ) ; tip . dest . text ( "to: " + totext ) ; tip . label . text ( "label(s): " + ( usedL == 0 ? 'None' : labels . filter ( ( n , i ) => usedL & 1 << i ) ) ) ; }
update tip fields with the totals
update tip fields with the totals