From: Vincent Pit Date: Tue, 10 Mar 2009 16:23:28 +0000 (+0100) Subject: This is 0.11 X-Git-Tag: v0.11^0 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLinux-SysInfo.git;a=commitdiff_plain;h=7cc9831c8d8d6f3dee5a53b394d08775282df1d4 This is 0.11 --- diff --git a/Changes b/Changes index 7ecc441..ef88c3d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,11 @@ 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 diff --git a/META.yml b/META.yml index 35759fe..181c9aa 100644 --- a/META.yml +++ b/META.yml @@ -1,18 +1,30 @@ --- #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 -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 diff --git a/README b/README index 1ecb696..3cc89e3 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Linux::SysInfo - Perl interface to the sysinfo(2) Linux system call. VERSION - Version 0.10 + Version 0.11 SYNOPSIS use Linux::SysInfo qw/sysinfo/; @@ -23,49 +23,61 @@ CONSTANTS 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 @@ -82,6 +94,9 @@ BINARY COMPATIBILITY 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. @@ -95,8 +110,7 @@ SEE ALSO AUTHOR Vincent Pit, "", . - 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 @@ -111,7 +125,7 @@ SUPPORT 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. diff --git a/lib/Linux/SysInfo.pm b/lib/Linux/SysInfo.pm index 3eb7ae7..0335835 100644 --- a/lib/Linux/SysInfo.pm +++ b/lib/Linux/SysInfo.pm @@ -9,13 +9,13 @@ Linux::SysInfo - Perl interface to the sysinfo(2) Linux system call. =head1 VERSION -Version 0.10 +Version 0.11 =cut our $VERSION; BEGIN { - $VERSION = '0.10'; + $VERSION = '0.11'; } =head1 SYNOPSIS