line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Inventory::SMBios::MemoryArray; |
6
|
|
|
|
|
|
|
|
7
|
38
|
|
|
38
|
|
482
|
use v5.12.5; |
|
38
|
|
|
|
|
138
|
|
8
|
38
|
|
|
38
|
|
216
|
use warnings; |
|
38
|
|
|
|
|
75
|
|
|
38
|
|
|
|
|
1701
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.3'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
38
|
|
|
38
|
|
344
|
use Rex::Inventory::SMBios::Section; |
|
38
|
|
|
|
|
90
|
|
|
38
|
|
|
|
|
2333
|
|
13
|
38
|
|
|
38
|
|
403
|
use base qw(Rex::Inventory::SMBios::Section); |
|
38
|
|
|
|
|
80
|
|
|
38
|
|
|
|
|
7188
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->section("physical memory array"); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->has( |
18
|
|
|
|
|
|
|
[ |
19
|
|
|
|
|
|
|
{ key => 'Number Of Devices', from => "Number of Slots/Sockets" }, |
20
|
|
|
|
|
|
|
{ key => 'Error Correction Type', from => "ECC" }, |
21
|
|
|
|
|
|
|
{ key => 'Maximum Capacity', from => "Max Capacity" }, |
22
|
|
|
|
|
|
|
'Location', |
23
|
|
|
|
|
|
|
], |
24
|
|
|
|
|
|
|
1 |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new { |
28
|
0
|
|
|
0
|
0
|
|
my $that = shift; |
29
|
0
|
|
0
|
|
|
|
my $proto = ref($that) || $that; |
30
|
0
|
|
|
|
|
|
my $self = $that->SUPER::new(@_); |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
bless( $self, $proto ); |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |