mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Limitations
This commit is contained in:
parent
c556bf3ba8
commit
6ea901e7ee
@ -951,7 +951,7 @@ class HostDevices extends Wizard
|
|||||||
$n_agents = 0;
|
$n_agents = 0;
|
||||||
foreach (explode(',', $this->task['subnet']) as $net) {
|
foreach (explode(',', $this->task['subnet']) as $net) {
|
||||||
$mask = explode('/', $net, 2)[1];
|
$mask = explode('/', $net, 2)[1];
|
||||||
if (empty($mask) === true) {
|
if (empty($mask)) {
|
||||||
$n_agents++;
|
$n_agents++;
|
||||||
} else {
|
} else {
|
||||||
$n_agents += pow(2, (32 - $mask));
|
$n_agents += pow(2, (32 - $mask));
|
||||||
@ -987,7 +987,7 @@ class HostDevices extends Wizard
|
|||||||
'name' => 'review_results',
|
'name' => 'review_results',
|
||||||
'type' => 'switch',
|
'type' => 'switch',
|
||||||
'return' => true,
|
'return' => true,
|
||||||
'value' => ($this->task['review_mode'] == DISCOVERY_STANDARD) ? ($limited ? 1 : 0) : 1,
|
'value' => ($this->task['review_mode'] == DISCOVERY_STANDARD) ? (($limited) ? 1 : 0) : 1,
|
||||||
'disabled' => $limited,
|
'disabled' => $limited,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user