Skip to content

Instantly share code, notes, and snippets.

@nyamakawa2
nyamakawa2 / swapstat.pl
Last active November 19, 2020 18:58
swapstat by /proc
#!/usr/bin/perl -w
# Original : https://stackoverflow.com/a/38790442
use strict;
use Getopt::Std;
my ($tot,$mtot)=(0,0);
my %procs;
my %opts;