line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Inventory::Generic::Dmidecode; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
92582903
|
use strict; |
|
1
|
|
|
|
|
12
|
|
|
1
|
|
|
|
|
110
|
|
4
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
120
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
13
|
use English qw(-no_match_vars); |
|
1
|
|
|
|
|
53
|
|
|
1
|
|
|
|
|
32
|
|
7
|
1
|
|
|
1
|
|
1110
|
use UNIVERSAL::require; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
803
|
use FusionInventory::Agent::Tools; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
318
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub isEnabled { |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# don't run dmidecode on Win2003 |
14
|
|
|
|
|
|
|
# http://forge.fusioninventory.org/issues/379 |
15
|
0
|
0
|
|
0
|
0
|
|
if ($OSNAME eq 'MSWin32') { |
16
|
0
|
|
|
|
|
|
Win32->require(); |
17
|
0
|
0
|
|
|
|
|
return if Win32::GetOSName() eq 'Win2003'; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
return canRun('dmidecode'); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
0
|
|
sub doInventory {} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |