Revision history for Linux-SysInfo
+0.11 2009-03-10 16:25 UTC
+ + Chg : Perl 5.6 is required.
+ + Doc : Some formatting cleanup.
+ + Tst : Check that the returned values look like numbers.
+ + Upd : META.yml spec updated to 1.4.
+
0.10 2008-03-10 15:40 UTC
+ Doc : The usual set of POD typos.
+ Fix : Ensure that we're on linux with $^O, as some smokers don't seem
--- #YAML:1.0
-name: Linux-SysInfo
-version: 0.10
-abstract: Perl interface to the sysinfo(2) Linux system call.
-license: perl
-author:
+name: Linux-SysInfo
+version: 0.11
+abstract: Perl interface to the sysinfo(2) Linux system call.
+author:
- Vincent Pit <perl@profvince.com>
-generated_by: ExtUtils::MakeMaker version 6.44
-distribution_type: module
-requires:
- Exporter: 0
- XSLoader: 0
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
+license: perl
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
build_requires:
- ExtUtils::MakeMaker: 0
- Test::More: 0
+ ExtUtils::MakeMaker: 0
+ Test::More: 0
+requires:
+ Exporter: 0
+ perl: 5.006
+ XSLoader: 0
+resources:
+ bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Linux-SysInfo
+ homepage: http://search.cpan.org/dist/Linux-SysInfo/
+ license: http://dev.perl.org/licenses/
+ repository: http://git.profvince.com/perl/modules/Linux-SysInfo.git
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.48
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
Linux::SysInfo - Perl interface to the sysinfo(2) Linux system call.
VERSION
- Version 0.10
+ Version 0.11
SYNOPSIS
use Linux::SysInfo qw/sysinfo/;
FUNCTIONS
"sysinfo"
- This function takes no argument. It returns undef on failure or a hash
- reference whose keys are the members name of the struct sysinfo on
+ This function takes no argument. It returns "undef" on failure or a hash
+ reference whose keys are the members name of the "struct sysinfo" on
success :
- "uptime"
+ * "uptime"
+
Seconds elapsed since the system booted.
- "load1", "load5", "load15"
+ * "load1", "load5", "load15"
+
1, 5 and 15 minutes load average.
- "totalram"
+ * "totalram"
+
Total usable main memory size.
- "freeram"
+ * "freeram"
+
Available memory size.
- "sharedram"
+ * "sharedram"
+
Amount of shared memory.
- "bufferram"
+ * "bufferram"
+
Memory used by buffers.
- "totalswap"
+ * "totalswap"
+
Total swap space size.
- "freeswap"
+ * "freeswap"
+
Swap space still available.
- "procs"
+ * "procs"
+
Number of current processes.
Prior to Linux 2.3.23 on i386 and 2.3.48 on all other architectures, the
memory sizes were given in bytes. Since then, the following members are
also available and all the memory sizes are given as multiples of
- mem_unit bytes :
+ "mem_unit" bytes :
+
+ * "totalhigh"
- "totalhigh"
Total high memory size.
- "freehigh"
+ * "freehigh"
+
Available high memory size.
- "mem_unit"
+ * "mem_unit"
+
Memory unit size in bytes.
EXPORT
version, you will also need to recompile the module if you upgrade your
perl from a version earlier than 5.6.
+DEPENDENCIES
+ perl 5.6.
+
SEE ALSO
The sysinfo(2) man page.
AUTHOR
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
- You can contact me by mail or on #perl @ FreeNode (vincent or
- Prof_Vince).
+ You can contact me by mail or on "irc.perl.org" (vincent).
BUGS
Please report any bugs or feature requests to "bug-linux-sysinfo at
perldoc Linux::SysInfo
COPYRIGHT & LICENSE
- Copyright 2007-2008 Vincent Pit, all rights reserved.
+ Copyright 2007-2009 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.