Fix uptime fetching code.

Minor documentation fixes.
This commit is contained in:
Bill Fenner
2007-02-15 21:49:59 +00:00
parent 70197f35ee
commit 0dc9174c83

View File

@@ -32,7 +32,7 @@ use Exporter;
use SNMP::Info::Layer3;
use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ;
$VERSION = '1.04';
$VERSION = '1.05';
@SNMP::Info::Layer3::NetSNMP::ISA = qw/SNMP::Info::Layer3 Exporter/;
@SNMP::Info::Layer3::NetSNMP::EXPORT_OK = qw//;
@@ -97,7 +97,7 @@ sub uptime {
my $netsnmp = shift;
my $uptime;
$uptime = $ucd->hrSystemUptime();
$uptime = $netsnmp->hrSystemUptime();
return $uptime if defined $uptime;
return $netsnmp->SUPER::uptime();
@@ -182,7 +182,7 @@ These are methods that return scalar value from SNMP
=item $netsnmp->vendor()
Returns 'Net-SNMP' and the Net-SNMP version.
Returns 'Net-SNMP'.
=item $netsnmp->os()
@@ -190,7 +190,8 @@ These are methods that return scalar value from SNMP
=item $netsnmp->os_ver()
Returns the software version extracted from sysDescr.
Returns the software version extracted from sysDescr, along
with the Net-SNMP version.
=item $netsnmp->uptime()