Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

melhoria StatusSystemCommand.php #659

Open
rhulio opened this issue Oct 7, 2023 · 0 comments
Open

melhoria StatusSystemCommand.php #659

rhulio opened this issue Oct 7, 2023 · 0 comments

Comments

@rhulio
Copy link

rhulio commented Oct 7, 2023

No arquivo /protected/commands/StatusSystemCommand.php, acima da linha 114, sugiro uma verificação se a variável $cpu_info['model'] está vazia e caso esteja, preencher com algo genérico, exemplo: "Processador".

Motivo: Alguns tipos de virtualização omitem o nome do processador no comando /proc/cpuinfo, que por sua vez torna a variável $cpu_info['model'] vazia no MagnusBilling e impede que sejam inseridos dados de status do sistema no banco de dados. Isso também acaba de alguma forma bugando as chamadas online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant