The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
|
my @sysinfo = qw(
hostname
domain
kernel
release
version
memtotal
swaptotal
countcpus
uptime
idletime
) ;
my $lxs = Sys::Statistics::Linux->new;
$lxs ->set( sysinfo => 1);
my $stats = $lxs ->get;
ok( defined $stats ->sysinfo->{ $_ }, "checking sysinfo $_" ) for @sysinfo ;
|