Skip to content

ramiroencinas/System-Stats-DISKUsage

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
t
 
 
 
 
 
 
 
 
 
 
 
 
 
 

System::Stats::DISKUsage

Build Status

Raku module - Provides Disk Usage Stats.

OS Supported:

  • GNU/Linux (Kernel 2.6+) by /proc/diskstats

Installing the module

zef update
zef install System::Stats::DISKUsage

Example Usage:

use v6;
use System::Stats::DISKUsage;

my %diskUsage = DISK_Usage();

say "\nDisk Usage per second:\n";
say "Drive BytesRead BytesWritten\n";

for %diskUsage.sort(*.key)>>.kv -> ($drive, $usage) {

	printf "%-5s %-9d %-d\n", $drive, $usage<bytesreadpersec>, $usage<byteswrittenpersec>;	

}

TODO:

  • Win32 version.

About

Raku module - Provides Disk Usage Stats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages