getOurStats method

Future getOurStats()

Implementation

Future<dynamic> getOurStats() async {
  var proc = 'server.our_stats';
  dynamic stats = await request(proc);
  return ServerStats(
    stats['our_cost'],
    stats['hard_limit'],
    stats['soft_limit'],
    stats['cost_decay_per_sec'],
    stats['bandwith_cost_per_byte'],
    stats['sleep'],
    stats['concurrent_requests'],
    stats['send_size'],
    stats['send_count'],
    stats['receive_size'],
    stats['receive_count'],
  );
}