librenms/librenms

View on GitHub
LibreNMS/OS/Shared/Foundry.php

Summary

Maintainability
A
1 hr
Test Coverage

Method discoverProcessors has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function discoverProcessors()
    {
        $module_descriptions = $this->getCacheByIndex('snAgentConfigModuleDescription', 'FOUNDRY-SN-AGENT-MIB');

        return \SnmpQuery::walk('FOUNDRY-SN-AGENT-MIB::snAgentCpuUtilTable')->mapTable(function ($entry, $slot, $cpu, $interval) use ($module_descriptions) {
Severity: Minor
Found in LibreNMS/OS/Shared/Foundry.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status