NAME

Data::Collector::Info::Memory - Fetch machine RAM information

VERSION

version 0.07

DESCRIPTION

This info module fetches information about a machine's RAM status using /proc/meminfo. It will not work on Solaris or Windows.

It would be better to do it using a normalized module. Patches are welcome. :)

The keys this module takes in the registry are free_memory and total_memory.

SUBROUTINES/METHODS

info_keys

Subclassing info_keys from Data::Collector::Info to indicate which keys to register.

total

Returns the total memory.

free

Returns the free memory.

all

Runs both methods and returns their result in a unified hashref.

AUTHOR

Sawyer X <xsawyerx@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Sawyer X.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.