System::Stats::NETUsage

Provides Network Usage Stats

System::Stats::NETUsage

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>;

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.