lib/out.js
function avg(input, output) {

  var event = input[0];
  if (event.what === 0 && event.total === 0) {
    return [];
  }
  return [ output, [ 'total', cyan + event.what.toFixed(3) + close ],
    [ 'average', cyan + (event.what / event.total).toFixed(3) + close ],
    [ 'max', cyan + event.max.toFixed(3) + close ],
    [ 'min', cyan + event.min.toFixed(3) + close ], [ '' ] ];
}
function avg(input, output) {

  var event = input[0];
  if (event.what === 0 && event.total === 0) {
    return [];
  }
  return [ output, [ 'total', cyan + event.what.toFixed(3) + close ],
    [ 'average', cyan + (event.what / event.total).toFixed(3) + close ],
    [ 'max', cyan + event.max.toFixed(3) + close ],
    [ 'min', cyan + event.min.toFixed(3) + close ], [ '' ] ];
}
function avg ( input , output ) { var event = input [ 0 ] ; if ( event . what === 0 && event . total === 0 ) { return [ ] ; } return [ output , [ 'total' , cyan + event . what . toFixed ( 3 ) + close ] , [ 'average' , cyan + ( event . what / event . total ) . toFixed ( 3 ) + close ] , [ 'max' , cyan + event . max . toFixed ( 3 ) + close ] , [ 'min' , cyan + event . min . toFixed ( 3 ) + close ] , [ '' ] ] ; }
output for average

@function avg
@param {Array} input - line parsed
@param {String} output - header
@return {Array}
output for average