line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Inventory::DMIDecode::MemoryArray; |
6
|
|
|
|
|
|
|
|
7
|
39
|
|
|
39
|
|
541
|
use v5.12.5; |
|
39
|
|
|
|
|
136
|
|
8
|
39
|
|
|
39
|
|
343
|
use warnings; |
|
39
|
|
|
|
|
131
|
|
|
39
|
|
|
|
|
1732
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.3'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
39
|
|
|
39
|
|
233
|
use Rex::Inventory::DMIDecode::Section; |
|
39
|
|
|
|
|
168
|
|
|
39
|
|
|
|
|
1943
|
|
13
|
39
|
|
|
39
|
|
239
|
use base qw(Rex::Inventory::DMIDecode::Section); |
|
39
|
|
|
|
|
162
|
|
|
39
|
|
|
|
|
7088
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->section("Physical Memory Array"); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->has( |
18
|
|
|
|
|
|
|
[ |
19
|
|
|
|
|
|
|
'Number Of Devices', |
20
|
|
|
|
|
|
|
'Error Correction Type', |
21
|
|
|
|
|
|
|
'Maximum Capacity', |
22
|
|
|
|
|
|
|
'Location', |
23
|
|
|
|
|
|
|
], |
24
|
|
|
|
|
|
|
1 |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new { |
28
|
3
|
|
|
3
|
0
|
6
|
my $that = shift; |
29
|
3
|
|
33
|
|
|
10
|
my $proto = ref($that) || $that; |
30
|
3
|
|
|
|
|
10
|
my $self = $that->SUPER::new(@_); |
31
|
|
|
|
|
|
|
|
32
|
3
|
|
|
|
|
7
|
bless( $self, $proto ); |
33
|
|
|
|
|
|
|
|
34
|
3
|
|
|
|
|
6
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |