Skip to content

Instantly share code, notes, and snippets.

View ericleasemorgan's full-sized avatar

Eric Lease Morgan ericleasemorgan

View GitHub Profile
@creaktive
creaktive / cpuusage.pl
Created January 15, 2011 20:58
Calculating CPU Usage from /proc/stat in Perl
#!/usr/bin/perl
# Ref: Calculating CPU Usage from /proc/stat
# (http://colby.id.au/node/39)
use strict;
use warnings 'all';
use utf8;
use List::Util qw(sum);