index.js
function totalRx(opts) {
  if (opts) {
    opts.iface = opts.iface || 'lo';
    opts.units = opts.units || 'bytes';
  } else {
    opts = {
      iface: 'lo',
      units: 'bytes',
    };
  }

  var total = parseInt(_parseProcNetDev()[opts.iface].bytes.receive);
  var converted = _bytesTo(total, opts.units);

  return converted;
}
function totalRx(opts) {
  if (opts) {
    opts.iface = opts.iface || 'lo';
    opts.units = opts.units || 'bytes';
  } else {
    opts = {
      iface: 'lo',
      units: 'bytes',
    };
  }

  var total = parseInt(_parseProcNetDev()[opts.iface].bytes.receive);
  var converted = _bytesTo(total, opts.units);

  return converted;
}
function totalRx ( opts ) { if ( opts ) { opts . iface = opts . iface || 'lo' ; opts . units = opts . units || 'bytes' ; } else { opts = { iface : 'lo' , units : 'bytes' , } ; } var total = parseInt ( _parseProcNetDev ( ) [ opts . iface ] . bytes . receive ) ; var converted = _bytesTo ( total , opts . units ) ; return converted ; }
/* PUBLIC
/ * PUBLIC