ramiroencinas / System-Stats-NETUsage

Raku module - Provides Network Usage Stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System::Stats::NETUsage

Build Status

Raku module - Provides Network Usage Stats.

OS Supported:

  • GNU/Linux by /proc/net/dev
  • Win32 by netstat command

Installing the module

zef update
zef install System::Stats::NETUsage

Example Usage:

use v6;
use System::Stats::NETUsage;

my %netUsage = NET_Usage();

say "\nNetwork Usage per second:\n";

say "Bytes received: " ~ %netUsage<bytesReceivedPerSecond>;
say "    Bytes sent: " ~ %netUsage<bytesSentPerSecond>;

About

Raku module - Provides Network Usage Stats

License:Artistic License 2.0


Languages

Language:Raku 100.0%